Browse Source

* fixed ipt_sysrq to compile on x86_64

git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21873 10447126-35f2-4685-b0cf-6dd780d3921f
early
Alejandro Mery 18 years ago
parent
commit
5d2dde12f6
  1. 27
      network/ipt_sysrq/fpic.patch
  2. 38
      network/ipt_sysrq/hotfix.patch
  3. 2
      network/ipt_sysrq/ipt_sysrq.desc

27
network/ipt_sysrq/fpic.patch

@ -0,0 +1,27 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../ipt_sysrq/fpic.patch
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- ./src/Makefile-2.6.orig 2007-07-30 13:47:48.000000000 +0000
+++ ./src/Makefile-2.6 2007-07-30 13:49:19.000000000 +0000
@@ -40,7 +40,7 @@
$(MAKE) -C $(KERNEL_SOURCES) SUBDIRS=$(PWD) modules
libipt_SYSRQ.o: libipt_SYSRQ.c
- gcc -Wall -DNETFILTER_VERSION=\""$(IPTVERSION)"\" -c $< -o $@
+ gcc -Wall -fPIC -DNETFILTER_VERSION=\""$(IPTVERSION)"\" -c $< -o $@
libipt_SYSRQ.so: libipt_SYSRQ.o
ld -shared -o $@ $<

38
network/ipt_sysrq/hotfix.patch

@ -0,0 +1,38 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../ipt_sysrq/hotfix.patch
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- ./src/rsysrq.h.orig 2007-07-30 13:54:47.000000000 +0000
+++ ./src/rsysrq.h 2007-07-30 13:56:57.000000000 +0000
@@ -2,10 +2,9 @@
#ifndef _RSYSRQ_H
#define _RSYSRQ_H
-#include <asm/byteorder.h>
-
#ifndef __KERNEL__
#include <sys/types.h>
+#include <asm/byteorder.h>
typedef __uint8_t u8;
typedef __uint32_t u32;
@@ -22,6 +21,7 @@
#endif
#else
+#include <asm/byteorder.h>
#include <linux/string.h>
#endif

2
network/ipt_sysrq/ipt_sysrq.desc

@ -32,4 +32,4 @@
[V] 0.5
[P] X -----5---9 800.000
[D] 0 ipt-sysrq-0.5.tar.gz http://marek.terminus.sk/prog/
[D] 4047964618 ipt-sysrq-0.5.tar.gz http://marek.terminus.sk/prog/

Loading…
Cancel
Save