Просмотр исходного кода

Merge trunk revision 2542:
r2542 | beekhof | 2009-11-05 06:01:25 -0700 (Thu, 05 Nov 2009) | 1 line

Fix compilation on RHEL-4: If _GNU_SOURCE isn't defined, then neither is pthread_spinlock_t and compilation fails



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2583 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 16 лет назад
Родитель
Сommit
87096254a5
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      include/corosync/hdb.h

+ 4 - 0
include/corosync/hdb.h

@@ -36,6 +36,10 @@
 #ifndef HDB_H_DEFINED
 #define HDB_H_DEFINED
 
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
 #include <errno.h>
 #include <assert.h>
 #include <stdlib.h>