diff mbox series

support/reexport: guard dlfcn.h include with HAVE_DLFCN_H

Message ID 20230611174506.3432934-1-giulio.benetti@benettiengineering.com (mailing list archive)
State New, archived
Headers show
Series support/reexport: guard dlfcn.h include with HAVE_DLFCN_H | expand

Commit Message

Giulio Benetti June 11, 2023, 5:45 p.m. UTC
From: Bernd Kuhls <bernd.kuhls@t-online.de>

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 support/reexport/fsidd.c    | 2 ++
 support/reexport/reexport.c | 2 ++
 2 files changed, 4 insertions(+)

Comments

Steve Dickson June 12, 2023, 8:15 p.m. UTC | #1
On 6/11/23 1:45 PM, Giulio Benetti wrote:
> From: Bernd Kuhls <bernd.kuhls@t-online.de>
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Committed... (tag: nfs-utils-2-6-4-rc2)

steved.
> ---
>   support/reexport/fsidd.c    | 2 ++
>   support/reexport/reexport.c | 2 ++
>   2 files changed, 4 insertions(+)
> 
> diff --git a/support/reexport/fsidd.c b/support/reexport/fsidd.c
> index 37649d06..d4b245e8 100644
> --- a/support/reexport/fsidd.c
> +++ b/support/reexport/fsidd.c
> @@ -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>
> diff --git a/support/reexport/reexport.c b/support/reexport/reexport.c
> index d597a2f7..d9a700af 100644
> --- a/support/reexport/reexport.c
> +++ b/support/reexport/reexport.c
> @@ -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>
diff mbox series

Patch

diff --git a/support/reexport/fsidd.c b/support/reexport/fsidd.c
index 37649d06..d4b245e8 100644
--- a/support/reexport/fsidd.c
+++ b/support/reexport/fsidd.c
@@ -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>
diff --git a/support/reexport/reexport.c b/support/reexport/reexport.c
index d597a2f7..d9a700af 100644
--- a/support/reexport/reexport.c
+++ b/support/reexport/reexport.c
@@ -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>