r15375: Rename readline.h to smbreadline.h avoid clashes with system header.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 1 May 2006 13:20:05 +0000 (13:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:05:29 +0000 (14:05 -0500)
(This used to be commit ccc3d8a95441e7a7015f0cf0e622ec9e38347d33)

source4/build/smb_build/header.pm
source4/client/client.c
source4/lib/registry/tools/regshell.c
source4/lib/replace/smbreadline.h [moved from source4/lib/replace/readline.h with 100% similarity]

index 7a0e40fda5d994928ef331b1fd990f8a8e536aa6..34e81a3a24ddeac89c69e23dadbe2de7e8d36829 100644 (file)
@@ -35,8 +35,10 @@ sub _prepare_build_h($)
                                 $key->{TYPE} ne "BINARY");
                next unless defined($key->{INIT_FUNCTIONS});
 
+               my $name = $key->{NAME};
+               $name =~ s/-/_/g;
                $DEFINE->{COMMENT} = "$key->{TYPE} $key->{NAME} INIT";
-               $DEFINE->{KEY} = "STATIC_$key->{NAME}_MODULES";
+               $DEFINE->{KEY} = "STATIC_$name\_MODULES";
                $DEFINE->{VAL} = "{ \\\n";
                foreach (@{$key->{INIT_FUNCTIONS}}) {
                        $DEFINE->{VAL} .= "\t$_, \\\n";
index a17ce8e686810ca7df364d81f2722724ccfe599d..a90e597b0b415c184eaae9f12558f44a608b8afa 100644 (file)
@@ -38,7 +38,7 @@
 #include "system/time.h" /* needed by some systems for asctime() */
 #include "libcli/resolve/resolve.h"
 #include "libcli/security/security.h"
-#include "lib/replace/readline.h"
+#include "lib/replace/smbreadline.h"
 #include "librpc/gen_ndr/ndr_nbt.h"
 
 static int io_bufsize = 64512;
index dc8ff7723fea8bd301d7aa583199fd29623e7832..6da64d14a8e50f27adaed1a008edd03766f2a7ef 100644 (file)
@@ -25,7 +25,7 @@
 #include "lib/events/events.h"
 #include "lib/registry/reg_backend_rpc.h"
 #include "system/time.h"
-#include "lib/replace/readline.h"
+#include "lib/replace/smbreadline.h"
 #include "librpc/gen_ndr/ndr_security.h"
 
 /*