ifdef's for BSD and cleanup

pull/657/head
Isaac Connor 2015-01-02 17:07:49 -05:00
parent 1137c3907e
commit 92e6d940bc
2 changed files with 7 additions and 6 deletions

View File

@ -26,15 +26,9 @@
#include <stdarg.h> #include <stdarg.h>
//#include <memory.h> //#include <memory.h>
#include <alloca.h> #include <alloca.h>
#include <string.h>
//#include <unistd.h> //#include <unistd.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/param.h> #include <sys/param.h>
#if defined(BSD)
#include <sys/uio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#include <netinet/tcp.h> #include <netinet/tcp.h>
int CommsBase::readV( int iovcnt, /* const void *, int, */ ... ) int CommsBase::readV( int iovcnt, /* const void *, int, */ ... )

View File

@ -22,6 +22,7 @@
#include "zm_exception.h" #include "zm_exception.h"
#include <string.h>
#include <unistd.h> #include <unistd.h>
#include <netdb.h> #include <netdb.h>
#include <errno.h> #include <errno.h>
@ -30,6 +31,12 @@
#include <set> #include <set>
#include <vector> #include <vector>
#if defined(BSD)
#include <sys/uio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#endif
class CommsException : public Exception class CommsException : public Exception
{ {
public: public: