From 3544c8e738c3993d9c87417329c573544f641ad9 Mon Sep 17 00:00:00 2001 Message-Id: <3544c8e738c3993d9c87417329c573544f641ad9.1716310992.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 17 Nov 2013 11:34:52 +0000 Subject: [PATCH] Provide for a network initialization step Organization: Straylight/Edgeware From: Richard Kettlewell --- clients/disorder.c | 1 + lib/common.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/clients/disorder.c b/clients/disorder.c index 949eacf..17676a6 100644 --- a/clients/disorder.c +++ b/clients/disorder.c @@ -864,6 +864,7 @@ int main(int argc, char **argv) { const char *user = 0, *password = 0; mem_init(); + network_init(); #if HAVE_PCRE_H /* garbage-collect PCRE's memory */ pcre_malloc = xmalloc; diff --git a/lib/common.h b/lib/common.h index 99f8671..93dd431 100644 --- a/lib/common.h +++ b/lib/common.h @@ -31,6 +31,8 @@ # define declspec(x) # define socket_error() (errno) # define system_error() (errno) +# define network_init() + #if HAVE_INTTYPES_H # include #endif -- [mdw]