summaryrefslogtreecommitdiff
path: root/misc/uptimec/patches/patch-aa
blob: 6c0a701cf6945bf14ac837af54320908f1707faf (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-aa,v 1.1 2006/01/03 16:55:43 joerg Exp $

--- uptimec.c.orig	2006-01-03 16:51:33.000000000 +0000
+++ uptimec.c
@@ -60,7 +60,7 @@
 /* NetBSD, FreeBSD, OpenBSD and MacOS X */
 #ifndef GETUPTIME_METHOD_FOUND
 #	if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
-	   defined(__APPLE__) || defined(__DARWIN__)
+	   defined(__APPLE__) || defined(__DARWIN__) || defined(__DragonFly__)
 #		define GETUPTIME_BSDLIKE
 #		define GETUPTIME_METHOD_FOUND
 #	endif
@@ -529,7 +529,7 @@ int main(int argc, char** argv)
 	/* We do not want password etc given on commandline to be visible when
 	   listing processes with the ps-command */
 #	if defined(HAVE_SETPROCTITLE)
-#		if defined(__FreeBSD__)
+#		if defined(__FreeBSD__) || defined(__DragonFly__)
 			setproctitle("-uptimec");
 #		else
 			setproctitle(NULL);