openbsd-ports/graphics/xpaint/patches/patch-fileName_c
2005-05-24 19:49:28 +00:00

22 lines
832 B
Plaintext

$OpenBSD: patch-fileName_c,v 1.1 2005/05/24 19:49:28 naddy Exp $
--- fileName.c.orig Mon May 23 23:12:09 2005
+++ fileName.c Mon May 23 23:13:09 2005
@@ -39,7 +39,7 @@
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
-#if defined(SYSV) || defined(SVR4) || defined(__CYGWIN__) || defined(__VMS )
+#if defined(SYSV) || defined(SVR4) || defined(__CYGWIN__) || defined(__VMS ) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <dirent.h>
#else
#include <sys/dir.h>
@@ -455,7 +455,7 @@ static void
setCWD(arg_t * arg, char *dir)
{
DIR *dirp;
-#if defined(SYSV) || defined(SVR4) || defined(__alpha) || defined(__CYGWIN__)
+#if defined(SYSV) || defined(SVR4) || defined(__alpha) || defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__OpenBSD__)
struct dirent *e;
#else
struct direct *e;