Move #include <pthread.h> to sanei_thread.h

The sanei header file may need pthread_t.  If it does, make sure it
is available.
merge-requests/1/head
Olaf Meeuwissen 2016-02-13 17:34:46 +09:00
rodzic af35e9ba74
commit 04d5e4a0cf
2 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -61,6 +61,7 @@
#include "../include/sane/config.h"
#ifdef USE_PTHREAD
#include <pthread.h>
typedef pthread_t SANE_Pid;
#else
typedef int SANE_Pid;

Wyświetl plik

@ -71,9 +71,6 @@
#if !defined USE_PTHREAD && !defined HAVE_OS2_H && !defined __BEOS__
# include <sys/wait.h>
#endif
#if defined USE_PTHREAD
# include <pthread.h>
#endif
#define BACKEND_NAME sanei_thread /**< name of this module for debugging */