blob: 5b93fbd8a6343454859a7a69d903348464d1f9a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-al,v 1.1 2006/03/22 18:33:57 joerg Exp $
--- src/port/freebsd/include/port_before.h.orig 2006-03-22 17:11:36.000000000 +0000
+++ src/port/freebsd/include/port_before.h
@@ -11,7 +11,7 @@
#define DO_PTHREADS
#endif
-#if defined (__FreeBSD__) && __FreeBSD__>=3
+#if defined(__DragonFly__) || defined (__FreeBSD__) && __FreeBSD__>=3
#define SETPWENT_VOID
#endif
@@ -27,7 +27,7 @@
#define GROUP_R_ENT_ARGS void
#define GROUP_R_OK (*result = gptr, 0)
#define GROUP_R_BAD ((ge == NULL) ? (*result = NULL, 0) : errno)
-#if defined(__FreeBSD_version) && __FreeBSD_version >= 500030
+#if defined(__DragonFly__) || defined(__FreeBSD_version) && __FreeBSD_version >= 500030
#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, \
int *ngroups
#else
|