Include test for pthread.h and include header in lrzip_private.h.

This commit is contained in:
Con Kolivas 2012-07-07 21:16:11 +10:00
parent 73316ae276
commit 901e507bd8
2 changed files with 6 additions and 1 deletions

View file

@ -83,7 +83,7 @@ AM_CONDITIONAL([STATIC], [test "x$static" = "xyes"])
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/mman.h)
AC_CHECK_HEADERS(ctype.h errno.h sys/resource.h)
AC_CHECK_HEADERS(endian.h sys/endian.h arpa/inet.h)
AC_CHECK_HEADERS(alloca.h)
AC_CHECK_HEADERS(alloca.h pthread.h)
AC_TYPE_OFF_T
AC_TYPE_SIZE_T

View file

@ -30,6 +30,11 @@
#include <stdio.h>
#include <stdbool.h>
#include <stdarg.h>
#ifdef HAVE_PTHREAD_H
# include <pthread.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif