Skip to contentSkip to conversation

support/reexport: guard dlfcn.h include with HAVE_DLFCN_H

PATCH In review Giulio Benetti 2 participants 2 messages Jun 11, 2023 – Jun 12, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/reexport: guard dlfcn.h include with HAVE_DLFCN_H

From: Bernd Kuhls <[email protected]>

---
 support/reexport/fsidd.c    | 2 ++
 support/reexport/reexport.c | 2 ++
 2 files changed, 4 insertions(+)
support/reexport/fsidd.c +2 -0
index 37649d06..d4b245e8 100644
@@ -3,7 +3,9 @@
 #endif
 
 #include <assert.h>
+#ifdef HAVE_DLFCN_H
 #include <dlfcn.h>
+#endif
 #include <event2/event.h>
 #include <limits.h>
 #include <stdint.h>
support/reexport/reexport.c +2 -0
index d597a2f7..d9a700af 100644
@@ -2,7 +2,9 @@
 #include <config.h>
 #endif
 
+#ifdef HAVE_DLFCN_H
 #include <dlfcn.h>
+#endif
 #include <stdint.h>
 #include <stdio.h>
 #include <sys/random.h>
Signature · 1 line
2.34.1
#1 lore raw
Quoted 4 lines · Giulio Benetti

From: Bernd Kuhls <[email protected]>

Committed... (tag: nfs-utils-2-6-4-rc2)

steved.

Quoted 33 lines
---
  support/reexport/fsidd.c    | 2 ++
  support/reexport/reexport.c | 2 ++
  2 files changed, 4 insertions(+)
support/reexport/fsidd.c +2 -0
index 37649d06..d4b245e8 100644
@@ -3,7 +3,9 @@
  #endif
 
  #include <assert.h>
+#ifdef HAVE_DLFCN_H
  #include <dlfcn.h>
+#endif
  #include <event2/event.h>
  #include <limits.h>
  #include <stdint.h>
support/reexport/reexport.c +2 -0
index d597a2f7..d9a700af 100644
@@ -2,7 +2,9 @@
  #include <config.h>
  #endif
 
+#ifdef HAVE_DLFCN_H
  #include <dlfcn.h>
+#endif
  #include <stdint.h>
  #include <stdio.h>
  #include <sys/random.h>