Skip to contentSkip to conversation

reexport/{fsidd,reexport}.c: Add missing <unistd.h>

PATCH New Petr Vorel 1 participant 1 message Dec 5, 2023

Subsystems (2)
lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 reexport/{fsidd,reexport}.c: Add missing <unistd.h>

uClibc-ng requires this header for close(2), unlink(2) and write(2).

Fixes 1a4edb2a ("reexport/fsidd.c: Remove unused headers")
Fixes bdc79f02 ("support/reexport.c: Remove unused headers")

---
Hi Steve,

I'm sorry to introduce a regression. Here is a fix, tested on glibc, musl and uClibc-ng.

 support/reexport/fsidd.c    | 1 +
 support/reexport/reexport.c | 1 +
 2 files changed, 2 insertions(+)
support/reexport/fsidd.c +1 -0
index 8a70b78f..307e73e5 100644
@@ -7,6 +7,7 @@
 #include <dlfcn.h>
 #endif
 #include <event2/event.h>
+#include <unistd.h>
 
 #include "conffile.h"
 #include "reexport_backend.h"
support/reexport/reexport.c +1 -0
index 0fb49a46..c7bff6a3 100644
@@ -7,6 +7,7 @@
 #endif
 #include <sys/types.h>
 #include <sys/vfs.h>
+#include <unistd.h>
 #include <errno.h>
 
 #include "nfsd_path.h"
Signature · 1 line
2.43.0