check more headers before including them
This commit is contained in:
parent
b06b684589
commit
ce24cbd045
2 changed files with 13 additions and 1 deletions
|
@ -85,7 +85,8 @@ AM_GNU_GETTEXT_VERSION(0.15)
|
|||
AM_GNU_GETTEXT([external])
|
||||
|
||||
AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
|
||||
AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
|
||||
AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/socket.h sys/time.h)
|
||||
AC_CHECK_HEADERS(sys/wait.h)
|
||||
# AC_HEADER_TIME
|
||||
# AC_TYPE_SIGNAL
|
||||
|
||||
|
|
|
@ -21,10 +21,21 @@
|
|||
#include "obt/display.h"
|
||||
#include "obt/util.h"
|
||||
|
||||
#ifdef HAVE_STDIO_H
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
#ifdef HAVE_STDLIB_H
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
typedef struct _ObtMainLoopTimer ObtMainLoopTimer;
|
||||
typedef struct _ObtMainLoopSignal ObtMainLoopSignal;
|
||||
|
|
Loading…
Reference in a new issue