diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-07 03:12:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-07 03:12:12 +0000 |
commit | 4e0f61672a4cd8a3d8afc21e9afc2a7acd849976 (patch) | |
tree | 20cba6f816bb34fdd956935e64d4432ed2427c65 /net-analyzer/dhcp_probe/files/1.3.0/04_linux_32_or_64bits.patch | |
parent | d479c9c5c724c7b1300a98e44975f31f4f2e51dd (diff) |
gentoo auto-resync : 07:12:2022 - 03:12:11
Diffstat (limited to 'net-analyzer/dhcp_probe/files/1.3.0/04_linux_32_or_64bits.patch')
-rw-r--r-- | net-analyzer/dhcp_probe/files/1.3.0/04_linux_32_or_64bits.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/net-analyzer/dhcp_probe/files/1.3.0/04_linux_32_or_64bits.patch b/net-analyzer/dhcp_probe/files/1.3.0/04_linux_32_or_64bits.patch deleted file mode 100644 index dcd79ffc58b2..000000000000 --- a/net-analyzer/dhcp_probe/files/1.3.0/04_linux_32_or_64bits.patch +++ /dev/null @@ -1,33 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 04_linux_32_or_64bits.dpatch by Laurent Guignard <lguignard.debian@gmail.com> -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: A solution to solve the bug #535361 -## May be this will be a solution with the right method ??? - -@DPATCH@ -diff -urNad trunk~/src/get_myipaddr.c trunk/src/get_myipaddr.c ---- trunk~/src/get_myipaddr.c 2009-09-03 13:10:32.000000000 +0200 -+++ trunk/src/get_myipaddr.c 2009-09-03 13:15:39.671451172 +0200 -@@ -118,7 +118,21 @@ - #endif /* not STRUCT_SOCKADDR_HAS_SA_LEN */ - - /* increment ptr to next interface for next time through the loop */ -+#ifdef __ARCH__ /* Debian GNU/Linux behavior for packaging goal */ -+ switch(__ARCH__) { -+ case 32: /* 32 bits architectures */ -+ ptr += sizeof(ifr->ifr_name) + len; -+ break; -+ case 64: /* 64 bits architectures */ -+ ptr += sizeof(struct ifreq); -+ break; -+ default: /* Default dhcp_probe behavior */ -+ ptr += sizeof(ifr->ifr_name) + len; -+ break; -+ } -+#else /* Default dhcp_probe behavior */ - ptr += sizeof(ifr->ifr_name) + len; -+#endif - - if (strcmp(ifname, ifr->ifr_name) != 0 ) /* is this the interface we're looking for? */ - continue; |