summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2018-07-26 13:07:04 +0000
committerNiels de Vos <ndevos@redhat.com>2018-07-27 17:37:32 +0000
commit35cfc01fa2e395111f7d629f00dc06eecf35a709 (patch)
treed950ccda65f97be4aa40654770fdf6f90ea78689 /api/src
parent405c6e8a8a64f29b37c154091e1677ef67440e73 (diff)
build: rename event.h to gf-event.h
Newer FreeBSD versions (noticed with 10.3-RELEASE) provide a event.h file that on occasion gets included instead of the libglusterfs file. When this happens, 'struct event_pool' will not be defined and building will fail with errors like: autoscale-threads.c:18:55: error: incomplete definition of type 'struct event_pool' int thread_count = pool->eventthreadcount; ~~~~^ autoscale-threads.c:17:16: note: forward declaration of 'struct event_pool' struct event_pool *pool = ctx->event_pool; ^ This problem is caused by 'pkg-config --cflags uuid' that adds /usr/local/include to the GF_CPPFLAGS. The use of libuuid is preferred so that the contrib/uuid/ directory can be removed. By renaming event.h to gf-event.h there is no conflict between the different event.h files anymore and compiling on FreeBSD works without issues. Change-Id: Ie69f6b8a4f8f8e9630d39a86693eb74674f0f763 Updates: bz#1607319 Signed-off-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs-mgmt.c2
-rw-r--r--api/src/glfs-resolve.c2
-rw-r--r--api/src/glfs.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/api/src/glfs-mgmt.c b/api/src/glfs-mgmt.c
index 26b8538e381..911a7330512 100644
--- a/api/src/glfs-mgmt.c
+++ b/api/src/glfs-mgmt.c
@@ -19,7 +19,7 @@
#include "glusterfs.h"
#include "glfs.h"
#include "dict.h"
-#include "event.h"
+#include "gf-event.h"
#include "defaults.h"
#include "rpc-clnt.h"
diff --git a/api/src/glfs-resolve.c b/api/src/glfs-resolve.c
index 4b764d94122..e7dd7dca102 100644
--- a/api/src/glfs-resolve.c
+++ b/api/src/glfs-resolve.c
@@ -19,7 +19,7 @@
#include "glusterfs.h"
#include "logging.h"
#include "stack.h"
-#include "event.h"
+#include "gf-event.h"
#include "glfs-mem-types.h"
#include "common-utils.h"
#include "syncop.h"
diff --git a/api/src/glfs.c b/api/src/glfs.c
index 694e5e6f947..652520c41eb 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -38,7 +38,7 @@
#include "glusterfs.h"
#include "logging.h"
#include "stack.h"
-#include "event.h"
+#include "gf-event.h"
#include "glfs-mem-types.h"
#include "common-utils.h"
#include "syncop.h"