summaryrefslogtreecommitdiffstats
path: root/liblock
diff options
context:
space:
mode:
authorSam Varshavchik2021-05-17 22:48:17 -0400
committerSam Varshavchik2021-05-19 08:03:46 -0400
commit34b6dbb743654fdb6edccf101c4da7e671b7a92d (patch)
tree9328e2bd91c4fb8bf5f5103e97ca3456b1c09943 /liblock
parentf47a71576c377269f5c5ca6156b2f319256e2738 (diff)
downloadcourier-libs-34b6dbb743654fdb6edccf101c4da7e671b7a92d.tar.bz2
Tolerate -Wall and -Werror
Fixes to configure scripts and code so that it compiles (hopefully correctly) with -Wall and -Werror. Remove support for ancient BSD stricmp and strnicmp functions. AC_CHECK_FUNC does not work for strcasecmp and strncasecmp under -Wall, it's simpler to remove it.
Diffstat (limited to 'liblock')
-rw-r--r--liblock/locktest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/liblock/locktest.c b/liblock/locktest.c
index eb5cc4a..f9ee6fc 100644
--- a/liblock/locktest.c
+++ b/liblock/locktest.c
@@ -13,6 +13,13 @@
#if USE_LOCKF
#include "locklockf.c"
#endif
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <sys/types.h>
+#if HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
#include <signal.h>
#include <stdlib.h>
#include <string.h>