ports/irc/minbif/files/patch-src__irc__dcc.cpp
Pawel Pekala 3895939876 - Fix build with clang
- Remove leading article from COMMENT
- Convert to new LIB_DEPENDS format
- Support staging

While I'm here use option helpers where possible.

PR:		ports/184816
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-19 15:34:12 +00:00

19 lines
374 B
C++

--- src/irc/dcc.cpp.orig
+++ src/irc/dcc.cpp
@@ -17,12 +17,13 @@
#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
-#include <errno.h>
-#include <string.h>
+#include <cerrno>
+#include <cstring>
#include <sys/types.h>
-#include <netinet/in.h>
+#include <unistd.h>
#include "dcc.h"
#include "nick.h"