summaryrefslogtreecommitdiff
path: root/src/feh.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-02-28 17:53:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-02-28 17:53:51 +0100
commit4567042b5145b097c962499f26511aa5106f0e60 (patch)
tree57268aa9c2d7b455eeecd5e92b5ec58b7c7a3cc6 /src/feh.h
parentb251f26261309c933a43c863f81227219a9e8355 (diff)
Add Makefile flag to disable version sorting on C libraries without strverscmp
Diffstat (limited to 'src/feh.h')
-rw-r--r--src/feh.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/feh.h b/src/feh.h
index 4e7a3ff..3e0cdda 100644
--- a/src/feh.h
+++ b/src/feh.h
@@ -27,7 +27,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef FEH_H
#define FEH_H
+/*
+ * strverscmp(3) is a GNU extension. In most supporting C libraries it
+ * requires _GNU_SOURCE to be defined.
+ */
+#ifdef HAVE_VERSCMP
#define _GNU_SOURCE
+#endif
+
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>