dynconfig: Use replace.h and memory.h directly, not via includes.h
authorAndrew Bartlett <abartlet@samba.org>
Wed, 21 Oct 2015 01:10:57 +0000 (14:10 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 21 Oct 2015 09:26:38 +0000 (11:26 +0200)
includes.h brings in talloc.h, but this was recently removed as a dependency.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Oct 21 11:26:38 CEST 2015 on sn-devel-104

dynconfig/dynconfig.c

index cf35bdb435dccdc9264df734126b4463932efac6..961415278a042b58069875b1fb32edc1dbde9f71 100644 (file)
@@ -18,8 +18,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "includes.h"
-
 /**
  * @file dynconfig.c
  *
  * table?  There's kind of a chicken-and-egg situation there...
  **/
 
+#include "replace.h"
 #include "dynconfig.h"
-#ifdef strdup
-#undef strdup
-#endif
+#include "lib/util/memory.h"
 
 #define DEFINE_DYN_CONFIG_PARAM(name) \
 const char *dyn_##name = name; \