Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Core: Use HAVE_SYS_TYPES_H and HAVE_SIGNAL_H

* These files may not be available on all platforms (eg. WinCE)
  • Loading branch information...
commit 1e6928ccab25f933950ab67f9dba30cdc8822056 1 parent 33ba123
@pbatard pbatard authored tobygray committed
View
1  configure.ac
@@ -219,6 +219,7 @@ AM_CONDITIONAL([HAVE_SIGACTION], [test "x$have_sigaction" = "xyes"])
# headers not available on all platforms but required on others
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_FUNCS(gettimeofday)
+AC_CHECK_HEADERS([signal.h])
AM_CFLAGS="${AM_CFLAGS} -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow ${THREAD_CFLAGS} ${VISIBILITY_CFLAGS}"
View
3  libusb/core.c
@@ -25,7 +25,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
View
5 libusb/io.c
@@ -20,12 +20,15 @@
#include <config.h>
#include <errno.h>
-#include <signal.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
View
2  libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 10592
+#define LIBUSB_NANO 10593
View
6 msvc/config.h
@@ -28,3 +28,9 @@
/* type of second poll() argument */
#define POLL_NFDS_TYPE unsigned int
+
+/* Define to 1 if you have the <signal.h> header file. */
+#define HAVE_SIGNAL_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
Please sign in to comment.
Something went wrong with that request. Please try again.