opnsense-ports/sysutils/symlinks/files/patch-symlinks.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

20 lines
418 B
C

--- symlinks.c.orig 2010-01-23 09:58:35.000000000 -0800
+++ symlinks.c 2010-01-23 09:59:34.000000000 -0800
@@ -1,10 +1,6 @@
#include <unistd.h>
-#ifndef _POSIX_SOURCE
-#define _POSIX_SOURCE
-#endif
#include <stdio.h>
#include <stdlib.h>
-#include <malloc.h>
#include <string.h>
#include <fcntl.h>
#include <sys/param.h>
@@ -358,5 +354,5 @@
}
if (dircount == 0)
usage_error();
- exit (0);
+ return (0);
}