]> xenbits.xensource.com Git - libvirt.git/commitdiff
avoid compile error when <pthread.h> is absent
authorJim Meyering <meyering@redhat.com>
Fri, 18 Apr 2008 09:26:45 +0000 (09:26 +0000)
committerJim Meyering <meyering@redhat.com>
Fri, 18 Apr 2008 09:26:45 +0000 (09:26 +0000)
* src/internal.h (HAVE_PTHREAD_H): Test with "#ifdef", not "#if".

ChangeLog
src/internal.h

index 6ccf374cac440d3895bef95c6c4218e500517f49..6ea2f90f0ce16d4a90157bc083c46a931c874a22 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        Fixes for MinGW.
index 6b2b6332179e8040fda6a73ca057d307fbf414e4..6bed4770d2a944140547b728b3dafdfeac634b34 100644 (file)
@@ -12,7 +12,7 @@
 #include <sys/syslimits.h>
 #endif
 
-#if HAVE_PTHREAD_H
+#ifdef HAVE_PTHREAD_H
 #include <pthread.h>
 #define PTHREAD_MUTEX_T(v) pthread_mutex_t v
 #else