mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
23 lines
635 B
C
23 lines
635 B
C
--- lib/utils.h.orig 2015-09-21 03:42:11 UTC
|
|
+++ lib/utils.h
|
|
@@ -3,6 +3,9 @@
|
|
#ifndef CCNET_UTILS_H
|
|
#define CCNET_UTILS_H
|
|
|
|
+#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
+#include <netinet/in.h>
|
|
+#endif
|
|
#include <sys/time.h>
|
|
#include <time.h>
|
|
#include <stdint.h>
|
|
@@ -13,7 +16,9 @@
|
|
#include <stdlib.h>
|
|
#include <sys/stat.h>
|
|
|
|
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
+#if defined(__FreeBSD__) || defined(__DragonFly__)
|
|
+#include <evutil.h>
|
|
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
|
#include <event2/util.h>
|
|
#else
|
|
#include <evutil.h>
|