summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
Diffstat (limited to 'source3/script')
-rw-r--r--source3/script/mkproto.awk12
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/script/mkproto.awk b/source3/script/mkproto.awk
index 6e1242b84f..b1c7f79c18 100644
--- a/source3/script/mkproto.awk
+++ b/source3/script/mkproto.awk
@@ -1,5 +1,6 @@
BEGIN {
inheader=0;
+ use_ldap_define = 0;
current_file="";
print "/* This file is automatically generated with \"make proto\". DO NOT EDIT */"
print ""
@@ -7,10 +8,19 @@ BEGIN {
{
if (FILENAME!=current_file) {
+ if (use_ldap_define)
+ {
+ print "#endif /* USE_LDAP */"
+ use_ldap_define = 0;
+ }
print ""
print "/*The following definitions come from ",FILENAME," */"
print ""
current_file=FILENAME
+ if (current_file=="ldap.c") {
+ print "#ifdef USE_LDAP"
+ use_ldap_define = 1;
+ }
}
if (inheader) {
if (match($0,"[)][ \t]*$")) {
@@ -64,7 +74,7 @@ BEGIN {
next;
}
-!/^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t|^enum remote_arch_types|^FILE/ {
+!/^uid_t|^gid_t|^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t|^enum remote_arch_types|^FILE/ {
next;
}