summaryrefslogtreecommitdiff
path: root/package/lsof/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/lsof/patches')
-rw-r--r--package/lsof/patches/patch-Configure30
-rw-r--r--package/lsof/patches/patch-Configure.orig30
-rw-r--r--package/lsof/patches/patch-dialects_linux_machine_h10
3 files changed, 70 insertions, 0 deletions
diff --git a/package/lsof/patches/patch-Configure b/package/lsof/patches/patch-Configure
new file mode 100644
index 0000000..a539da5
--- /dev/null
+++ b/package/lsof/patches/patch-Configure
@@ -0,0 +1,30 @@
+--- lsof_4.83_src.orig/Configure 2010-01-18 20:01:14.000000000 +0100
++++ lsof_4.83_src/Configure 2010-07-28 18:36:48.364508572 +0200
+@@ -2735,27 +2735,6 @@ return(0); }
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASIPv6"
+ fi # }
+-
+- # Test for SELinux support.
+-
+- LSOF_TMP1=0
+- if test "X$LINUX_HASSELINUX" = "X" # {
+- then
+- if test -r ${LSOF_INCLUDE}/selinux/selinux.h # {
+- then
+- LSOF_TMP1=1
+- fi # }
+- else
+- if test "X$LINUX_HASSELINUX" = "XY" -o "X$LINUX_HASSELINUX" = "Xy" # {
+- then
+- LSOF_TMP1=1
+- fi # }
+- fi # }
+- if test $LSOF_TMP1 -eq 1 # {
+- then
+- LSOF_CFGF="$LSOF_CFGF -DHASSELINUX"
+- LSOF_CFGL="$LSOF_CFGL -lselinux"
+- fi # }
+ LSOF_DIALECT_DIR="linux"
+ LSOF_CFGF="$LSOF_CFGF -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
+ ;;
diff --git a/package/lsof/patches/patch-Configure.orig b/package/lsof/patches/patch-Configure.orig
new file mode 100644
index 0000000..934d2f7
--- /dev/null
+++ b/package/lsof/patches/patch-Configure.orig
@@ -0,0 +1,30 @@
+--- lsof_4.83_src.orig/Configure 2010-01-18 20:01:14.000000000 +0100
++++ lsof_4.83_src/Configure 2010-07-28 15:37:18.304500970 +0200
+@@ -2735,27 +2735,6 @@ return(0); }
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASIPv6"
+ fi # }
+-
+- # Test for SELinux support.
+-
+- LSOF_TMP1=0
+- if test "X$LINUX_HASSELINUX" = "X" # {
+- then
+- if test -r ${LSOF_INCLUDE}/selinux/selinux.h # {
+- then
+- LSOF_TMP1=1
+- fi # }
+- else
+- if test "X$LINUX_HASSELINUX" = "XY" -o "X$LINUX_HASSELINUX" = "Xy" # {
+- then
+- LSOF_TMP1=1
+- fi # }
+- fi # }
+- if test $LSOF_TMP1 -eq 1 # {
+- then
+- LSOF_CFGF="$LSOF_CFGF -DHASSELINUX"
+- LSOF_CFGL="$LSOF_CFGL -lselinux"
+- fi # }
+ LSOF_DIALECT_DIR="linux"
+ LSOF_CFGF="$LSOF_CFGF -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
+ ;;
diff --git a/package/lsof/patches/patch-dialects_linux_machine_h b/package/lsof/patches/patch-dialects_linux_machine_h
new file mode 100644
index 0000000..76b08a6
--- /dev/null
+++ b/package/lsof/patches/patch-dialects_linux_machine_h
@@ -0,0 +1,10 @@
+--- lsof_4.83_src.orig/dialects/linux/machine.h 2008-10-21 18:17:26.000000000 +0200
++++ lsof_4.83_src/dialects/linux/machine.h 2010-07-28 18:39:34.252738199 +0200
+@@ -625,6 +625,6 @@
+ * zeromem is a macro that uses bzero or memset.
+ */
+
+-#define zeromem(a, l) bzero(a, l)
++#define zeromem(a, l) memset(a, 0, l)
+
+ #endif /* !defined(LSOF_MACHINE_H) */