aboutsummaryrefslogtreecommitdiff
path: root/ftp/gftp/files/patch-lib-fsplib_fsplib.h
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/gftp/files/patch-lib-fsplib_fsplib.h')
-rw-r--r--ftp/gftp/files/patch-lib-fsplib_fsplib.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/ftp/gftp/files/patch-lib-fsplib_fsplib.h b/ftp/gftp/files/patch-lib-fsplib_fsplib.h
new file mode 100644
index 000000000000..5d2d7449b053
--- /dev/null
+++ b/ftp/gftp/files/patch-lib-fsplib_fsplib.h
@@ -0,0 +1,24 @@
+--- lib/fsplib/fsplib.h.orig 2005-01-19 03:04:02.000000000 +0100
++++ lib/fsplib/fsplib.h 2007-11-05 16:37:32.000000000 +0100
+@@ -1,6 +1,8 @@
+ #ifndef _FSPLIB_H
+ #define _FSPLIB_H 1
+ #include <time.h>
++#include <stddef.h>
++
+ /* The FSP v2 protocol support library - public interface */
+
+ /*
+@@ -138,6 +140,12 @@
+ unsigned int pos; /* position of next packet */
+ } FSP_FILE;
+
++
++typedef union dirent_workaround {
++ struct dirent dirent;
++ char fill[offsetof (struct dirent, d_name) + MAXNAMLEN + 1];
++} dirent_workaround;
++
+ /* function prototypes */
+
+ /* session management */