summaryrefslogtreecommitdiff
path: root/src/feh.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-02-28 17:56:13 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-02-28 17:56:13 +0100
commite6a535093596d3732628b8114386eb9b72929a02 (patch)
tree09279aaf64051767df0880faaaf22636856770eb /src/feh.h
parent8eaa39234a54fcdd3c9050a01790b152598af80d (diff)
parent5a2db8f2ffc4371d2e88a65567d85663e6d16b36 (diff)
Merge branch 'ulteq-natural-sort'
Diffstat (limited to 'src/feh.h')
-rw-r--r--src/feh.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/feh.h b/src/feh.h
index 63771b6..3e0cdda 100644
--- a/src/feh.h
+++ b/src/feh.h
@@ -27,6 +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>