#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <inttypes.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
+#include <assert.h>
#ifdef HAVE_MINGW
#include <w32api.h>
#include <ws2tcpip.h>
#endif
-#ifdef HAVE_STDBOOL_H
-#include <stdbool.h>
-#endif
-
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
/* Include system specific headers */
#ifdef HAVE_SYSLOG_H
#include <arpa/inet.h>
#endif
+#ifdef HAVE_IFADDRS_H
+#include <ifaddrs.h>
+#endif
+
#ifdef HAVE_MINGW
#define SLASH "\\"
#else