changeset 415:8263cb88556a

Some #include cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2012 06:50:25 +0300
parents ac4862a94cd1
children 8bb69e749d97
files main.c network.c network.h
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Thu May 24 06:45:23 2012 +0300
+++ b/main.c	Thu May 24 06:50:25 2012 +0300
@@ -7,6 +7,8 @@
 #include "network.h"
 #include "th_args.h"
 #include "th_config.h"
+#include <errno.h>
+#include <time.h>
 #ifdef __WIN32
 /* Undefine because both windows.h and curses.h #define it */
 #undef MOUSE_MOVED
--- a/network.c	Thu May 24 06:45:23 2012 +0300
+++ b/network.c	Thu May 24 06:50:25 2012 +0300
@@ -4,6 +4,8 @@
  * (C) Copyright 2008-2012 Tecnic Software productions (TNSP)
  */
 #include "network.h"
+#include <errno.h>
+
 
 static const char *nn_proxy_types[] =
 {
--- a/network.h	Thu May 24 06:45:23 2012 +0300
+++ b/network.h	Thu May 24 06:50:25 2012 +0300
@@ -25,9 +25,6 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 #endif
-#include <sys/types.h>
-#include <time.h>
-#include <errno.h>
 
 
 #define NN_CONNBUF_SIZE   (64 * 1024)