summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2021-03-27 17:17:34 +0100
committerAndrew Bartlett <abartlet@samba.org>2021-04-07 09:18:30 +0000
commit4d5fb7d279ef899307a560da2bed037cda609f10 (patch)
treefdea6e4d0c995b26e04716fb20c5b9319dc893e5 /librpc
parentaac8be5419fdd5e222263e3558d556c1d1dc4cef (diff)
downloadsamba-4d5fb7d279ef899307a560da2bed037cda609f10.tar.gz
dcesrv_core: fix build
Move include of system/network.h to avoid a build error: In file included from ../../lib/replace/system/network.h:35, from ../../librpc/rpc/dcesrv_core.c:2658: usr/include/unistd.h: At top level: usr/include/unistd.h:675:16: error: conflicting types for ‘geteuid’ 675 | extern __uid_t geteuid (void) __THROW; Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/rpc/dcesrv_core.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/librpc/rpc/dcesrv_core.c b/librpc/rpc/dcesrv_core.c
index 8db17742701..b75336d0a85 100644
--- a/librpc/rpc/dcesrv_core.c
+++ b/librpc/rpc/dcesrv_core.c
@@ -33,6 +33,7 @@
#include "lib/tsocket/tsocket.h"
#include "librpc/gen_ndr/ndr_dcerpc.h"
#include "lib/util/tevent_ntstatus.h"
+#include "system/network.h"
#undef DBGC_CLASS
@@ -2634,16 +2635,6 @@ _PUBLIC_ void dcesrv_cleanup_broken_connections(struct dcesrv_context *dce_ctx)
}
}
-/* We need this include to be able to compile on some plateforms
- * (ie. freebsd 7.2) as it seems that <sys/uio.h> is not included
- * correctly.
- * It has to be that deep because otherwise we have a conflict on
- * const struct dcesrv_interface declaration.
- * This is mostly due to socket_wrapper defining #define bind swrap_bind
- * which conflict with the bind used before.
- */
-#include "system/network.h"
-
struct dcesrv_sock_reply_state {
struct dcesrv_connection *dce_conn;
struct dcesrv_call_state *call;