summaryrefslogtreecommitdiffstats
path: root/security/sudosh3
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2007-01-05 03:30:02 +0000
committercy <cy@FreeBSD.org>2007-01-05 03:30:02 +0000
commit561f94c8ac67d238dea19e4e4d30c86fb0248695 (patch)
treefbe3f40d7dd5fed3c1f6f5aa6cff621cd49bc465 /security/sudosh3
parent3d11201bd84c0c7dadf2f5c6a29e56eba855e3af (diff)
downloadFreeBSD-ports-561f94c8ac67d238dea19e4e4d30c86fb0248695.zip
FreeBSD-ports-561f94c8ac67d238dea19e4e4d30c86fb0248695.tar.gz
Fix errant ifdefs which also fixes build under 4.X.
Submitted by: jkim
Diffstat (limited to 'security/sudosh3')
-rw-r--r--security/sudosh3/Makefile8
-rw-r--r--security/sudosh3/files/patch-src::sudosh.c4
2 files changed, 3 insertions, 9 deletions
diff --git a/security/sudosh3/Makefile b/security/sudosh3/Makefile
index 84f8f32..06ed109 100644
--- a/security/sudosh3/Makefile
+++ b/security/sudosh3/Makefile
@@ -34,10 +34,4 @@ MAN1= sudosh.1
MAN5= sudosh.conf.5
MAN8= sudosh-replay.8
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-BROKEN= "Does not compile on FreeBSD 4.x"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/sudosh3/files/patch-src::sudosh.c b/security/sudosh3/files/patch-src::sudosh.c
index 8e65ebc..7f6da6f 100644
--- a/security/sudosh3/files/patch-src::sudosh.c
+++ b/security/sudosh3/files/patch-src::sudosh.c
@@ -44,7 +44,7 @@
+#endif
perror ("Cannot open cloning master pty");
return -1;
-+#ifdef __FreeBSD
++#ifndef __FreeBSD__
}
+#endif
}
@@ -54,7 +54,7 @@
(void) grantpt (p->mfd);
+#endif
-+#ifndef __FreeBSD
++#ifndef __FreeBSD__
sname = (char *) ptsname (p->mfd);
+#endif
OpenPOWER on IntegriCloud