about summary refs log tree commit diff
path: root/mpick.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-28 17:53:40 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-28 17:53:40 +0200
commit17976348d132990fbcbcc5eda3f7f4bf005d3a7f (patch)
tree55ca27190399616f807f5bc87271e3002ab6ac44 /mpick.c
parentc87201e4b72c9e0959d5ffae1b09d519bee91139 (diff)
downloadmblaze-17976348d132990fbcbcc5eda3f7f4bf005d3a7f.tar.gz
mblaze-17976348d132990fbcbcc5eda3f7f4bf005d3a7f.tar.xz
mblaze-17976348d132990fbcbcc5eda3f7f4bf005d3a7f.zip
mpick: portability
Diffstat (limited to 'mpick.c')
-rw-r--r--mpick.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mpick.c b/mpick.c
index 9e30aab..56b4200 100644
--- a/mpick.c
+++ b/mpick.c
@@ -1,4 +1,13 @@
+// FNM_CASEFOLD, strptime
 #define _GNU_SOURCE
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 700
+#endif
+
+/* For Solaris. */
+#if !defined(FNM_CASEFOLD) && defined(FNM_IGNORECASE)
+#define FNM_CASEFOLD FNM_IGNORECASE
+#endif
 
 #include <sys/ioctl.h>
 #include <sys/stat.h>
@@ -11,6 +20,7 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include <string.h>
+#include <strings.h>
 #include <time.h>
 #include <unistd.h>
 #include <wchar.h>