diff options
Diffstat (limited to 'app-admin/scotty/files/scotty-2.1.11-suse.patch')
-rw-r--r-- | app-admin/scotty/files/scotty-2.1.11-suse.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-admin/scotty/files/scotty-2.1.11-suse.patch b/app-admin/scotty/files/scotty-2.1.11-suse.patch new file mode 100644 index 000000000000..9686e9fba16f --- /dev/null +++ b/app-admin/scotty/files/scotty-2.1.11-suse.patch @@ -0,0 +1,47 @@ +--- tnm/generic/tnmInt.h ++++ tnm/generic/tnmInt.h +@@ -36,7 +36,10 @@ + #define TnmGetTime TclpGetTime + #endif + ++#if TCL_MAJOR_VERSION < 8 || TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION < 4 + #define TnmCreateDirectory TclpCreateDirectory ++#endif ++ + #if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION == 8 && TCL_RELEASE_SERIAL > 2 + #define TnmStat TclStat + #else +--- tnm/generic/tnmUtil.c ++++ tnm/generic/tnmUtil.c +@@ -12,6 +12,18 @@ + #include "tnmInt.h" + #include "tnmPort.h" + ++#if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION >= 4 || TCL_MAJOR_VERSION > 8 ++int TnmCreateDirectory(char *path) ++{ ++ Tcl_Obj *o; ++ int res; ++ o = Tcl_NewStringObj(path, -1); ++ Tcl_IncrRefCount(o); ++ res = Tcl_FSCreateDirectory(o); ++ Tcl_DecrRefCount(o); ++ return res; ++} ++#endif + + /* + *---------------------------------------------------------------------- +--- unix/configure.in ++++ unix/configure.in +@@ -251,8 +251,8 @@ + AC_CHECK_LIB(ieee, main, [LIBS="$LIBS -lieee"]) + AC_CHECK_LIB(rpc, main, [LIBS="$LIBS -lrpc"]) + AC_CHECK_LIB(rpcsvc, main, [LIBS="$LIBS -lrpcsvc"]) +-AC_CHECK_FUNC(res_mkquery, , +- AC_CHECK_LIB(resolv, res_mkquery, [LIBS="$LIBS -lresolv"])) ++AC_CHECK_FUNC(__res_mkquery, , ++ AC_CHECK_LIB(resolv, __res_mkquery, [LIBS="$LIBS -lresolv"])) + + #---------------------------------------------------------------------------- + # Checks for various include files missing on some machines. |