blob: 5efa2cad215dd1cfc9ee9936d9c6b7d14e0620e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
$NetBSD: patch-ab,v 1.8 2011/03/14 06:06:58 rumko Exp $
Deal with DragonFly BSD separately from FreeBSD.
--- configure.orig 2010-06-06 13:00:47.000000000 +0000
+++ configure
@@ -205,7 +205,7 @@ SRCS+= osdep-darwin.c \
EOF
;;
# ------------------------------------------------------------------------------
- FreeBSD|DragonFly)
+ FreeBSD)
cat <<EOF >>$CONFIG_H
#define HAVE_ASPRINTF
#define HAVE_BROKEN_KQUEUE
@@ -236,6 +236,39 @@ SRCS+= osdep-freebsd.c \
EOF
;;
# ------------------------------------------------------------------------------
+ DragonFly)
+ cat <<EOF >>$CONFIG_H
+#define HAVE_ASPRINTF
+#define HAVE_BZERO
+#define HAVE_CLOSEFROM
+#define HAVE_DAEMON
+#define HAVE_FGETLN
+#define HAVE_FORKPTY
+#define HAVE_GETOPT
+#define HAVE_LIBUTIL_H
+#define HAVE_LOGIN_CAP
+#define HAVE_PATHS_H
+#define HAVE_POLL
+#define HAVE_PROGNAME
+#define HAVE_SETPROCTITLE
+#define HAVE_STRCASESTR
+#define HAVE_STRLCAT
+#define HAVE_STRLCPY
+#define HAVE_STRTONUM
+#define HAVE_STRSEP
+#define HAVE_TREE_H
+#define HAVE_U_INT
+EOF
+ cat <<EOF >>$CONFIG_MK
+LIBS+= -lcurses -lcrypt -lutil -levent
+SRCS+= osdep-unknown.c \
+ compat/vis.c \
+ compat/unvis.c \
+ compat/imsg-buffer.c \
+ compat/imsg.c
+EOF
+ ;;
+# ------------------------------------------------------------------------------
NetBSD)
cat <<EOF >>$CONFIG_H
#define HAVE_ASPRINTF
|