ports/sysutils/webmin/files/patch-mount_freebsd-mounts-7.c
Jimmy Olgeni f852571faa Webmin ships with obsolete binaries of freebsd-mounts-*, a local
utility to retrieve mount point data. These dinamically linked
executables do not work on recent FreeBSD releases due to missing
libraries.

- Remove all unused binaries.

- Fix a couple of warnings in the source file and always build the
  version that is actually used.

- While I'm here, use SUB_FILES to improve PKGMESSAGE.
2010-08-14 17:57:13 +00:00

11 lines
197 B
C

$FreeBSD$
--- mount/freebsd-mounts-7.c.orig
+++ mount/freebsd-mounts-7.c
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <sys/param.h>