]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc: Fix the build on FreeBSD
authorVolker Lendecke <vl@samba.org>
Thu, 9 Nov 2023 15:18:13 +0000 (16:18 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 10 Nov 2023 01:36:43 +0000 (01:36 +0000)
ndr_wsp.h included standalone does not find struct timespec on FreeBSD

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/scripting/bin/gen_wsp_props.py

index 46913846856d98b4b50645e82cec87a6efb79263..e33169ee50d2b636f646ace648b36259001cb65f 100755 (executable)
@@ -136,7 +136,8 @@ def getVtype(prop):
        return result
 
 def generateSourceCode(propMap, outputFile):
-       source = "#include \"bin/default/librpc/gen_ndr/ndr_wsp.h\"\n"
+       source = "#include \"replace.h\"\n"
+       source = source + "#include \"bin/default/librpc/gen_ndr/ndr_wsp.h\"\n"
        source = source + "#include \"librpc/wsp/wsp_util.h\"\n"
        count = 0
        for guid in propMap.keys():