pkgsrc/net/sharity-light/patches/patch-af

29 lines
638 B
Text
Raw Normal View History

$NetBSD: patch-af,v 1.3 2012/03/05 04:44:17 dholland Exp $
2005-12-18 21:14:03 +01:00
2012-01-04 16:29:02 +01:00
- needs <time.h> on linux
- avoid <sys/errno.h>, not standard and fails on qnx
2012-01-04 16:29:02 +01:00
- dragonfly support
--- syshdr.h.orig 1998-11-16 17:03:49.000000000 +0000
2005-12-18 21:14:03 +01:00
+++ syshdr.h
@@ -15,8 +15,8 @@
2012-01-04 16:29:02 +01:00
#include <sys/socket.h>
#include <unistd.h>
#include <sys/time.h>
+#include <time.h>
#include <fcntl.h>
-#include <sys/errno.h>
2012-01-04 16:29:02 +01:00
#include <errno.h>
#include <sys/param.h>
#include <sys/stat.h>
@@ -47,6 +47,9 @@
2005-12-18 21:14:03 +01:00
# define BSD4_4_LITE2
# endif
#endif
+#if defined(__DragonFly__)
+#define BSD4_4_LITE2
+#endif
#if defined(BSD4_4) && !defined(BSD4_4_LITE2)
# define BSD4_4_LITE
#endif