freebsd-ports/sysutils/symlinks/files/patch-aa
Philip M. Gollucci 89dd62b9dd - Update to 1.4
PR:             ports/143134
Submitted by:   Rob Farmer <rfarmer@predatorlabs.net>
2010-02-12 19:58:08 +00:00

20 lines
418 B
Text

--- 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);
}