forked from Lainports/freebsd-ports
crunched binary, and sometimes stripped down in features to fit the needs of embedded systems. WWW: http://www.busybox.net/
51 lines
1.7 KiB
Text
51 lines
1.7 KiB
Text
diff -ubwr ../../work.base/busybox-1.8.2/networking/telnetd.c networking/telnetd.c
|
|
--- ../../work.base/busybox-1.8.2/networking/telnetd.c 2007-11-10 02:54:22.000000000 +0100
|
|
+++ networking/telnetd.c 2008-08-19 13:05:36.000000000 +0200
|
|
@@ -297,6 +297,9 @@
|
|
* cooked mode, and with XTABS CRMOD enabled (see tty(4)). */
|
|
tcgetattr(0, &termbuf);
|
|
termbuf.c_lflag |= ECHO; /* if we use readline we dont want this */
|
|
+#if defined (__FreeBSD__) && !defined(XTABS)
|
|
+#define XTABS OXTABS
|
|
+#endif
|
|
termbuf.c_oflag |= ONLCR | XTABS;
|
|
termbuf.c_iflag |= ICRNL;
|
|
termbuf.c_iflag &= ~IXOFF;
|
|
Only in networking/: telnetd.o
|
|
Only in networking/: tftp.o
|
|
diff -ubwr ../../work.base/busybox-1.8.2/networking/traceroute.c networking/traceroute.c
|
|
--- ../../work.base/busybox-1.8.2/networking/traceroute.c 2007-11-10 02:40:47.000000000 +0100
|
|
+++ networking/traceroute.c 2008-08-19 13:08:50.000000000 +0200
|
|
@@ -207,7 +207,18 @@
|
|
//#undef CONFIG_FEATURE_TRACEROUTE_USE_ICMP
|
|
//#define CONFIG_FEATURE_TRACEROUTE_USE_ICMP
|
|
|
|
-
|
|
+#if defined(__FreeBSD__)
|
|
+#include <sys/socket.h>
|
|
+#include <sys/types.h>
|
|
+#include <netinet/in_systm.h>
|
|
+struct udphdr {
|
|
+ u_short source;
|
|
+ u_short dest;
|
|
+ u_short len;
|
|
+ u_short check;
|
|
+};
|
|
+#define _NETINET_UDP_H_ // prevent inclusion of the real thing
|
|
+#endif
|
|
#include <net/if.h>
|
|
#include <arpa/inet.h>
|
|
#include <netinet/in.h>
|
|
--- networking/nslookup.c.orig 2008-06-25 14:51:14.000000000 +0200
|
|
+++ networking/nslookup.c 2008-08-19 17:05:31.000000000 +0200
|
|
@@ -11,6 +11,10 @@
|
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
|
*/
|
|
|
|
+#if defined __FreeBSD__
|
|
+#include <sys/types.h>
|
|
+#include <netinet/in.h>
|
|
+#endif
|
|
#include <resolv.h>
|
|
#include "libbb.h"
|
|
|