Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2019 20:04:19 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r509554 - head/graphics/xpaint/files
Message-ID:  <201908212004.x7LK4Jhq027257@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Wed Aug 21 20:04:18 2019
New Revision: 509554
URL: https://svnweb.freebsd.org/changeset/ports/509554

Log:
  graphics/xpaint: fix build after removal of sys/dir.h in HEAD

Modified:
  head/graphics/xpaint/files/patch-fileBrowser.c

Modified: head/graphics/xpaint/files/patch-fileBrowser.c
==============================================================================
--- head/graphics/xpaint/files/patch-fileBrowser.c	Wed Aug 21 19:46:39 2019	(r509553)
+++ head/graphics/xpaint/files/patch-fileBrowser.c	Wed Aug 21 20:04:18 2019	(r509554)
@@ -1,20 +1,26 @@
 --- fileBrowser.c.orig	2014-05-08 13:50:48 UTC
 +++ fileBrowser.c
-@@ -47,7 +47,7 @@ extern Xaw3dXftData *xaw3dxft_data;
+@@ -47,11 +47,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 defined(SYSV) || defined(SVR4) || defined(__CYGWIN__) || defined(__VMS ) || defined(BSD)
  #include <dirent.h>
- #else
- #include <sys/dir.h>
-@@ -562,7 +562,7 @@ static void 
+-#else
+-#include <sys/dir.h>
+-#endif
+ #include <pwd.h>
+ 
+ #include "rw/rwTable.h"
+@@ -562,11 +558,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(BSD)
      struct dirent *e;
- #else
-     struct direct *e;
+-#else
+-    struct direct *e;
+-#endif
+     int count = 0, i = 0;
+     int dirCount = 0, fileCount = 0;
+     String *list;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908212004.x7LK4Jhq027257>