freebsd-ports/deskutils/xpostit/files/patch-note.c
Rene Ladan 81314a2769 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)
2019-06-30 08:57:00 +00:00

20 lines
651 B
C

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