--- upsd-2.6.orig/net.c
+++ upsd-2.6/net.c
@@ -30,6 +30,9 @@
Author: Bob Hauck
Modified: Michael Robinton
+ Modified: Nick Estes
+
+ 2003/04/19: cleaned up warnings for gcc 3.2 (Nick Estes)
Revision 1.8 2000/06/08 15:06:00 mikr
Add some socket.h definitions that are not present in
@@ -79,6 +82,7 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
+#include <stdlib.h>
#include "common.h"
#include "ups.h"
@@ -94,9 +98,9 @@
};
#endif
-#ifndef socklen_t
-typedef unsigned int socklen_t;
-#endif
+// #ifndef socklen_t
+// typedef unsigned int socklen_t;
+// #endif
#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff