pkgsrc/misc/fep/patches/patch-al
hans 2043a3325b Fix build on SunOS.
- no more __P, just use ansi prototypes
- use sigprocmask instead of sigsetmask
- use dirent.h instead of sys/dir.h
2012-03-01 22:00:44 +00:00

48 lines
966 B
Text

$NetBSD: patch-al,v 1.6 2012/03/01 22:00:44 hans Exp $
--- fep_util.c.orig 1988-12-28 07:24:01.000000000 -0500
+++ fep_util.c 2005-12-10 16:59:27.000000000 -0500
@@ -3,14 +3,14 @@
#ifndef lint
static char rcsid[]=
"$Header: /cvsroot/pkgsrc/misc/fep/patches/patch-al,v 1.6 2012/03/01 22:00:44 hans Exp $ (SRA)";
-#endif lint
+#endif /* lint */
#ifndef MKARGDEBUG
#include <stdio.h>
#include <pwd.h>
#include <sys/types.h>
-#include <sys/dir.h>
+#include <dirent.h>
#include <ctype.h>
#include "fep_defs.h"
@@ -178,9 +178,9 @@ max (d1, d2)
{
return (d1 > d2 ? d1 : d2);
}
-#endif max
+#endif /* max */
-#else MKARGDEBUG
+#else /* MKARGDEBUG */
#include <stdio.h>
#include <ctype.h>
@@ -198,7 +198,7 @@ main()
showArgs (s);
}
}
-#endif MKARGDEBUG
+#endif /* MKARGDEBUG */
showArgs (comline)
char *comline;
@@ -402,4 +402,4 @@ iskanji_in_string (s, i)
else
return (iskanji (*cp));
}
-#endif KANJI
+#endif /* KANJI */