freebsd-ports/net/radius/files/patch-funcs.c
Pete Fritchman 2c23efd3f6 - update to 3.6B1
- remove 'SIZE' line from distinfo
- sort pkg-plist
- make pkg-plist create an empty lib/radius/acct directory (the port does this
  on it's own, but since no files are in this directory packages don't pick it
  up)
- add patch-funcs.c to allow this port to compile on -current

PR:		29099 (reporting compile problem)
2001-08-26 07:49:38 +00:00

14 lines
494 B
C

--- src/funcs.c.orig Sun Aug 26 03:03:53 2001
+++ src/funcs.c Sun Aug 26 03:14:07 2001
@@ -8333,9 +8333,9 @@
return 1;
}
-/*The following two lines do not compile on Solaris or Linux or BSDI. */
-#if !(defined(sys5) || defined(linux) || defined (BSDI))
close (fileno(fp));
+/*The following two lines do not compile on Solaris or Linux or BSDI. */
+#if !(defined(sys5) || defined(linux) || defined (BSDI) || defined (__FreeBSD__))
fileno(fp) = STDERR_FILENO;
#endif /* sys5 */