mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
avoid compile error when <pthread.h> is absent
* src/internal.h (HAVE_PTHREAD_H): Test with "#ifdef", not "#if".
This commit is contained in:
parent
8df91acf70
commit
2d206f1d7a
@ -1,3 +1,8 @@
|
|||||||
|
Fri Apr 18 11:24:24 CEST 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
avoid compile error when <pthread.h> is absent
|
||||||
|
* src/internal.h (HAVE_PTHREAD_H): Test with "#ifdef", not "#if".
|
||||||
|
|
||||||
Fri Apr 18 09:27:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
Fri Apr 18 09:27:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
Fixes for MinGW.
|
Fixes for MinGW.
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include <sys/syslimits.h>
|
#include <sys/syslimits.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_PTHREAD_H
|
#ifdef HAVE_PTHREAD_H
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#define PTHREAD_MUTEX_T(v) pthread_mutex_t v
|
#define PTHREAD_MUTEX_T(v) pthread_mutex_t v
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user