File slang-2.1.1-fsuid.dif of Package slang

--- autoconf/configure.ac
+++ autoconf/configure.ac
@@ -109,8 +109,17 @@
 netinet/in.h \
 arpa/inet.h \
 sys/un.h \
+sys/fsuid.h \
 )
 
+AC_CHECK_FUNCS(setfsuid setfsgid)
+
+if test "${ac_cv_func_setfsuid}" != "yes" || test "${ac_cv_func_setfsgid}" != "yes"; then
+    AC_MSG_ERROR([
+*** setfsguid and setfsgid cannot be found!!!
+    These are needed to support setuid/setgid applications ***])
+fi
+
 AC_TYPE_MODE_T
 AC_TYPE_PID_T
 AC_TYPE_UID_T
--- src/slinclud.h
+++ src/slinclud.h
@@ -30,4 +30,8 @@
 # include <memory.h>
 #endif
 
+#ifdef HAVE_SYS_FSUID_H
+# include <sys/fsuid.h>
+#endif
+
 #endif				       /* _SLANG_INCLUDE_H_ */
openSUSE Build Service is sponsored by