File prctl-1.3.dif of Package prctl

--- Makefile.in
+++ Makefile.in	2001/12/29 21:42:27
@@ -30,26 +30,27 @@
 LIBS = @LIBS@
 CFLAGS = @CFLAGS@
 # If you want debug on by default, use: CFLAGS="-g" ./configure
-LDFLAGS = $(CFLAGS)
+LDFLAGS = @LDFLAGS@
 
 prefix = @prefix@
-exec_prefix = $(prefix)
+exec_prefix = @exec_prefix@
 
-bindir = $(exec_prefix)/bin
+bindir = @bindir@
 scriptdir = $(bindir)
 # scriptdir is the directory in which shell scripts should be installed
-datadir = $(prefix)/lib
-libdir = $(prefix)/lib
-infodir = $(prefix)/info
+datadir = @datadir@
+libdir = @libdir@
+infodir = @infodir@
 
 # Extension (not including `.') for the installed manual page filenames.
 manext = 1
 # Where to install the manual pages.
-mandir = $(prefix)/man/man$(manext)
+mandir = @mandir@
+man1dir = $(mandir)/man$(manext)
 # Use manlinks=so to use the .so method instead of hard links
 manlinks = ln
 
-alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(infodir) $(mandir)
+alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(infodir) $(man1dir)
 
 #### End of system configuration section. ####
 
@@ -74,23 +75,23 @@
 install: installdirs installbin installman
 
 installdirs:
-	-if test ! -d $(prefix)/man; then \
-	   mkdir $(prefix)/man; fi
+	-if test ! -d $(mandir); then \
+	   mkdir -p $(mandir); fi
 	-for dir in $(alldirs) ; do \
 	   if test ! -d $${dir}; then \
-	      mkdir $${dir}; fi; \
+	      mkdir -p $${dir}; fi; \
 	done
 
 installbin: all
 	$(INSTALL_PROGRAM) prctl $(bindir)/prctl
-	
+
 installman: prctl.1
-	rm -f $(mandir)/prctl.$(manext)
-	$(INSTALL_DATA) prctl.1 $(mandir)/prctl.$(manext)
+	rm -f $(man1dir)/prctl.$(manext)
+	$(INSTALL_DATA) prctl.1 $(man1dir)/prctl.$(manext)
 
 uninstall:
 	rm -f $(bindir)/prctl
-	rm -f $(mandir)/prctl.$(manext)
+	rm -f $(man1dir)/prctl.$(manext)
 
 Makefile: Makefile.in ./config.status
 	./config.status
--- prctl.c
+++ prctl.c	2001/12/29 21:32:38
@@ -25,9 +25,17 @@
 #include <getopt.h>
 #include <errno.h>
 #include <pwd.h>
-#include <linux/prctl.h>
+#include <sys/prctl.h>
 #include <string.h>
 
+#ifndef PR_GET_FPEMU
+/* Get/set floating-point emulation control bits (if meaningful) */
+#define PR_GET_FPEMU  9
+#define PR_SET_FPEMU 10
+# define PR_FPEMU_NOPRINT	1	/* silently emulate fp operations accesses */
+# define PR_FPEMU_SIGFPE	2	/* don't emulate fp operations, send SIGFPE instead */
+#endif
+
 /* Version */
 #define VERSION	"1.3"
 
openSUSE Build Service is sponsored by