This is not needed elsewhere. This way, we ensure redefinition of
vfork() to fork() through a define is working as expected, even when
some system headers may try to rename vfork too.
Fix #264
#include <pwd.h>
#include <grp.h>
+#if HAVE_VFORK_H
+# include <vfork.h>
+#endif
+#if HAVE_WORKING_FORK
+# define vfork fork
+#endif
+
static void usage(void);
static struct protocol protos[] =
#include <netinet/in.h>
#include <sys/un.h>
-#if HAVE_VFORK_H
-# include <vfork.h>
-#endif
-#if HAVE_WORKING_FORK
-# define vfork fork
-#endif
-
#include "lldp-tlv.h"
#if defined (ENABLE_CDP) || defined (ENABLE_FDP)
# include "protocols/cdp.h"