Check for flock in libbsd for AIX, and remove some getopt.h includes. From J

Raynor.
This commit is contained in:
Nicholas Marriott 2015-07-13 14:19:50 +01:00
parent 28c33f67bc
commit 73f9f0334c
3 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <getopt.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@ -96,6 +96,9 @@ AC_CHECK_HEADERS(
] ]
) )
# Look for library needed for flock.
AC_SEARCH_LIBS(flock, bsd)
# Check for some functions that are replaced or omitted. # Check for some functions that are replaced or omitted.
AC_CHECK_FUNCS( AC_CHECK_FUNCS(
[ \ [ \

1
tmux.c
View File

@ -22,7 +22,6 @@
#include <errno.h> #include <errno.h>
#include <event.h> #include <event.h>
#include <fcntl.h> #include <fcntl.h>
#include <getopt.h>
#include <locale.h> #include <locale.h>
#include <pwd.h> #include <pwd.h>
#include <stdlib.h> #include <stdlib.h>