ports/graphics/xpaint/files/patch-fileBrowser.c
Nuno Teixeira 973a707c70 graphics/xpaint: Update to 3.1.4
- Switch to DISTVERSION
- Define LICENSE_FILE
- Use autoreconf as workaround to fix build (not needed in <= 3.1.3)
- Put most SED commands in patches
- Comment patches about what they doing
- Port uses USES=jpeg and not openjpeg* (at the moment)
- Take maintainership

ChangeLog: https://sourceforge.net/projects/sf-xpaint/files/sf-xpaint/
2023-07-14 10:58:13 +01:00

22 lines
618 B
C

Suppport dirent(3) if defined.
--- fileBrowser.c.orig 2020-09-02 07:24:21 UTC
+++ fileBrowser.c
@@ -48,7 +48,7 @@ extern Xaw3dXftData *xaw3dxft_data;
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
-#if defined(SYSV) || defined(SVR4) || defined(__CYGWIN__) || defined(__VMS )
+#if HAVE_DIRENT_H
#include <dirent.h>
#else
#include <sys/dir.h>
@@ -563,7 +563,7 @@ setCWD(arg_t * arg, char *dir)
setCWD(arg_t * arg, char *dir)
{
DIR *dirp;
-#if defined(SYSV) || defined(SVR4) || defined(__alpha) || defined(__CYGWIN__)
+#if HAVE_DIRENT_H
struct dirent *e;
#else
struct direct *e;