aboutsummaryrefslogtreecommitdiff
path: root/deskutils
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2019-06-30 08:57:00 +0000
committerRene Ladan <rene@FreeBSD.org>2019-06-30 08:57:00 +0000
commit81314a2769680adbfcc68da9c59b5597e04c8711 (patch)
tree234715c9ba031ce7c1ce66e3ef42472a5a8d3af3 /deskutils
parent56d36a1c6f07701a424e4dfec891e5245b2f0952 (diff)
downloadports-81314a2769680adbfcc68da9c59b5597e04c8711.tar.gz
ports-81314a2769680adbfcc68da9c59b5597e04c8711.zip
deskutils/xpostit: include dirent.h instead of sys/dir.h which is scheduled
for removal. PR: 238578 Submitted by: rene Approved by: maintainer timeout (joerg, 2 weeks)
Notes
Notes: svn path=/head/; revision=505409
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/xpostit/files/patch-note.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/deskutils/xpostit/files/patch-note.c b/deskutils/xpostit/files/patch-note.c
new file mode 100644
index 000000000000..58adaabebc21
--- /dev/null
+++ b/deskutils/xpostit/files/patch-note.c
@@ -0,0 +1,20 @@
+--- note.c.orig 1992-12-11 13:04:16 UTC
++++ note.c
+@@ -100,7 +100,7 @@ static char *RCSid = "$Header: /home/harbor/davy/stuff
+ #include <X11/Xaw/Form.h>
+ #include <X11/Shell.h>
+ #include <sys/param.h>
+-#if defined(USG) || defined(SYSV) || defined(SVR4)
++#if defined(USG) || defined(SYSV) || defined(SVR4) || defined(BSD)
+ #include <dirent.h>
+ #else
+ #include <sys/dir.h>
+@@ -240,7 +240,7 @@ LoadSavedNotes()
+ FILE *fp;
+ char *realloc();
+ register PostItNote *pn;
+-#if defined(USG) || defined(SYSV) || defined(SVR4)
++#if defined(USG) || defined(SYSV) || defined(SVR4) || defined(BSD)
+ register struct dirent *d;
+ #else
+ register struct direct *d;