84dee8dde8
- Fix types issues on 64-bits architectures. PR: ports/75878 Submitted by: Ville-Pertti Keinonen <will@exomi.com> Approved by: maintainer timeout (3 months)
24 lines
542 B
C
24 lines
542 B
C
|
|
$FreeBSD$
|
|
|
|
--- cfs.c.orig
|
|
+++ cfs.c
|
|
@@ -43,7 +43,7 @@
|
|
|
|
struct in_addr validhost;
|
|
|
|
-#if defined(SOLARIS2X) || defined(__NetBSD__)
|
|
+#if defined(SOLARIS2X) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
|
void nfs_program_2();
|
|
void adm_program_2();
|
|
#include <string.h>
|
|
@@ -240,7 +240,7 @@
|
|
setuid(0);
|
|
umask(0);
|
|
|
|
-#if defined(__NetBSD__) || defined(__bsdi__)
|
|
+#if defined(__NetBSD__) || defined(__bsdi__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
|
#ifndef DEBUG
|
|
/* detach from terminal */
|
|
daemon(0,0);
|