diff options
Diffstat (limited to 'graphics/xpdf/files/patch-ab')
-rw-r--r-- | graphics/xpdf/files/patch-ab | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/graphics/xpdf/files/patch-ab b/graphics/xpdf/files/patch-ab index edea0bef7a58..6054622530ce 100644 --- a/graphics/xpdf/files/patch-ab +++ b/graphics/xpdf/files/patch-ab @@ -1,20 +1,27 @@ ---- configure.in.~1~ Tue Aug 3 13:36:22 1999 -+++ configure.in Thu Nov 18 06:45:50 1999 -@@ -69,6 +69,7 @@ - dnl ##### Checks for header files. - AC_PATH_XTRA - AC_HEADER_DIRENT -+AC_CHECK_HEADERS(unistd.h) +--- goo/gfile.cc.org Fri Sep 1 14:35:26 2000 ++++ goo/gfile.cc Fri Sep 1 14:17:34 2000 +@@ -468,6 +468,16 @@ + int fd; - dnl ##### Look for header that defines fd_set. - AC_MSG_CHECKING([fd_set and sys/select.h or sys/bsdtypes.h]) -@@ -147,6 +148,9 @@ - xpdf_cv_func_select_arg, - [AC_TRY_COMPILE([#include <sys/types.h> - #include <sys/time.h> -+#ifdef HAVE_UNISTD_H -+#include <unistd.h> -+#endif - #ifdef HAVE_SYS_SELECT_H - #include <sys/select.h> - #endif], + if (ext) { ++# if HAVE_MKSTEMPS ++ if ((s = getenv("TMPDIR"))) { ++ *name = new GString(s); ++ } else { ++ *name = new GString("/tmp"); ++ } ++ (*name)->append("/XXXXXX"); ++ (*name)->append(ext); ++ fd = mkstemps((*name)->getCString(), strlen(ext)); ++# else + if (!(s = tmpnam(NULL))) { + return gFalse; + } +@@ -478,6 +488,7 @@ + } + (*name)->append(ext); + fd = open((*name)->getCString(), O_WRONLY | O_CREAT | O_EXCL, 0600); ++# endif + } else { + #if HAVE_MKSTEMP + if ((s = getenv("TMPDIR"))) { |