diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2002-05-16 04:03:08 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2002-05-16 04:03:08 +0800 |
commit | 4e8fb4fd4354ecc4a42d900b09c3855b0e44108b (patch) | |
tree | 54a32a95f0184c419239946d5cb4a9877fe89235 /x11-toolkits/xview | |
parent | 666280d1f09f1ebcb716855c11b7d4efd507692a (diff) | |
download | freebsd-ports-gnome-4e8fb4fd4354ecc4a42d900b09c3855b0e44108b.tar.gz freebsd-ports-gnome-4e8fb4fd4354ecc4a42d900b09c3855b0e44108b.tar.zst freebsd-ports-gnome-4e8fb4fd4354ecc4a42d900b09c3855b0e44108b.zip |
Fix building on -current
PR: 37987
Submitted by: Oliver Braun
Diffstat (limited to 'x11-toolkits/xview')
-rw-r--r-- | x11-toolkits/xview/files/patch-li | 51 |
1 files changed, 36 insertions, 15 deletions
diff --git a/x11-toolkits/xview/files/patch-li b/x11-toolkits/xview/files/patch-li index a1cf1d03031d..c6cd20d98fc9 100644 --- a/x11-toolkits/xview/files/patch-li +++ b/x11-toolkits/xview/files/patch-li @@ -130,7 +130,7 @@ diff -rc ../old/xview3.2p1-X11R6/lib/libxview/base/xv_debug.h ./lib/libxview/bas *** 18,27 **** /* Unix system error variables */ - extern int sys_nerr; +! extern int sys_nerr; extern char *sys_errlist[]; extern int errno; @@ -141,7 +141,7 @@ diff -rc ../old/xview3.2p1-X11R6/lib/libxview/base/xv_debug.h ./lib/libxview/bas --- 19,32 ---- /* Unix system error variables */ - extern int sys_nerr; +! extern const int sys_nerr; + #if (defined(BSD) && (BSD >= 199306)) + extern const char *const sys_errlist[]; + #else @@ -1847,15 +1847,26 @@ diff -rc ../old/xview3.2p1-X11R6/lib/libxview/textsw/es_file.c ./lib/libxview/te *** ../old/xview3.2p1-X11R6/lib/libxview/textsw/es_file.c Tue Jun 29 01:17:34 1993 --- ./lib/libxview/textsw/es_file.c Sun Nov 20 13:39:11 1994 *************** -*** 110,117 **** ---- 110,122 ---- +*** 109,117 **** + #include <xview_private/txt_18impl.h> - extern int errno, sys_nerr; -+ #if (defined(BSD) && (BSD >= 199306)) -+ extern const char *const sys_err_list[]; -+ extern off_t lseek(); -+ #else +! extern int errno, sys_nerr; + extern char *sys_errlist[]; + extern long lseek(); + + static void update_read_buf(); /* update the read buf if overlaps write buf */ + static Es_status es_file_commit(); +--- 109,123 ---- + #include <xview_private/txt_18impl.h> + + +! extern int errno; +! extern const sys_nerr; +! #if (defined(BSD) && (BSD >= 199306)) +! extern const char *const sys_err_list[]; +! extern off_t lseek(); +! #else extern char *sys_errlist[]; extern long lseek(); + #endif @@ -2054,14 +2065,24 @@ diff -rc ../old/xview3.2p1-X11R6/lib/libxview/textsw/txt_file.c ./lib/libxview/t *** ../old/xview3.2p1-X11R6/lib/libxview/textsw/txt_file.c Tue Jun 29 01:17:48 1993 --- ./lib/libxview/textsw/txt_file.c Sun Nov 20 13:39:12 1994 *************** -*** 51,57 **** ---- 51,61 ---- +*** 50,57 **** + #else extern char *getwd(); #endif /* SVR4 */ - extern int errno, sys_nerr; -+ #if (defined(BSD) && (BSD >= 199306)) -+ extern const char *const sys_errlist[]; -+ #else +! extern int errno, sys_nerr; + extern char *sys_errlist[]; + + Pkg_private int textsw_change_directory(); + Pkg_private void textsw_display(), textsw_display_view_margins(); +--- 50,62 ---- + #else + extern char *getwd(); + #endif /* SVR4 */ +! extern int errno; +! extern const int sys_nerr; +! #if (defined(BSD) && (BSD >= 199306)) +! extern const char *const sys_errlist[]; +! #else extern char *sys_errlist[]; + #endif |