Commit 850d0d15 authored by npzacs's avatar npzacs
Browse files

BSD: include sys/select.h

(Thanks to Brynet)
parent 5830453f
......@@ -47,7 +47,7 @@ AC_TYPE_SIGNAL
# required headers
AC_CHECK_HEADERS([stdarg.h sys/types.h dirent.h errno.h libgen.h malloc.h])
AC_CHECK_HEADERS([stdlib.h mntent.h linux/cdrom.h inttypes.h])
AC_CHECK_HEADERS([sys/time.h time.h pthread.h])
AC_CHECK_HEADERS([sys/time.h time.h pthread.h sys/select.h])
# required structures
AC_STRUCT_DIRENT_D_TYPE
......
......@@ -17,6 +17,10 @@
* <http://www.gnu.org/licenses/>.
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <util/attributes.h>
#include "aacs.h"
......@@ -32,8 +36,12 @@
#include <inttypes.h>
#include <string.h>
#include <stdio.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#include <gcrypt.h>
struct aacs {
uint8_t pk[16], mk[16], vuk[16], vid[16], *uks;
uint32_t num_uks;
......
......@@ -17,16 +17,24 @@
* <http://www.gnu.org/licenses/>.
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include "crypto.h"
#include "util/strutl.h"
#include "util/macro.h"
#include <string.h>
#include <stdio.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#include <gcrypt.h>
#include <pthread.h>
#include <errno.h>
/* Set this in CFLAGS to debug gcrypt MPIs and S-expressions */
#ifndef GCRYPT_DEBUG
#define GCRYPT_DEBUG 0
......
......@@ -20,6 +20,7 @@
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include "mmc.h"
#include "crypto.h"
#include "util/macro.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment