summary refs log tree commit diff
path: root/mpick.c
diff options
context:
space:
mode:
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>