diff options
Diffstat (limited to 'net/bandwidthd/files/patch-bandwidthd.c')
-rw-r--r-- | net/bandwidthd/files/patch-bandwidthd.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/bandwidthd/files/patch-bandwidthd.c b/net/bandwidthd/files/patch-bandwidthd.c new file mode 100644 index 000000000000..966db7208556 --- /dev/null +++ b/net/bandwidthd/files/patch-bandwidthd.c @@ -0,0 +1,23 @@ +--- bandwidthd.c.orig Fri Oct 10 20:22:39 2003 ++++ bandwidthd.c Sun Nov 2 12:21:17 2003 +@@ -114,7 +114,11 @@ + } + else + { ++#ifndef FREEBSD + printf("My shared memory segment %d is already in use (%ld locks), perhaps bandwidthd is already running in this directory?\n", shmid, shmstatus.shm_nattch); ++#else ++ printf("My shared memory segment %d is already in use (%hd locks), perhaps bandwidthd is already running in this directory?\n", shmid, shmstatus.shm_nattch); ++#endif + exit(1); + } + } +@@ -244,7 +248,7 @@ + tcp = (struct tcphdr *)(ip+1); + tcp = (struct tcphdr *) ( ((char *)tcp) + ((ip->ip_hl-5)*4) ); // Compensate for IP Options + Stats->tcp += size; +-#ifdef SOLARIS ++#if defined(SOLARIS) || defined(FREEBSD) + sport = ntohs(tcp->th_sport); + dport = ntohs(tcp->th_dport); + #else |