pkgsrc/misc/uptimec/patches/patch-aa
2006-01-03 16:55:43 +00:00

22 lines
840 B
Text

$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);