Hi.

Can you please consider applying in busybox the two little patches attached?
They fix two little build problems on (Debian) GNU/kFreeBSD because
"IUCLC" and the "domainname" field are Linux specific.

I produced these patches against busybox 1.13.3.


I attach 2 files:
20090514_2011_busybox.upstream.iuclc.diff
20090514_2011_busybox.upstream.domainname.diff


Cheers,
Luca Favatella
diff -Naur busybox-1.13.3/libbb/bb_askpass.c busybox-1.13.3.mod/libbb/bb_askpass.c
--- busybox-1.13.3/libbb/bb_askpass.c	2009-02-26 12:47:08.000000000 +0100
+++ busybox-1.13.3.mod/libbb/bb_askpass.c	2009-05-14 17:54:00.000000000 +0200
@@ -35,6 +35,9 @@
 	tcgetattr(STDIN_FILENO, &oldtio);
 	tcflush(STDIN_FILENO, TCIFLUSH);
 	tio = oldtio;
+#ifndef IUCLC
+#define IUCLC 0
+#endif
 	tio.c_iflag &= ~(IUCLC|IXON|IXOFF|IXANY);
 	tio.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|TOSTOP);
 	tcsetattr_stdin_TCSANOW(&tio);
diff -Naur busybox-1.13.3/libbb/login.c busybox-1.13.3.mod/libbb/login.c
--- busybox-1.13.3/libbb/login.c	2009-02-26 12:47:08.000000000 +0100
+++ busybox-1.13.3.mod/libbb/login.c	2009-05-14 17:54:00.000000000 +0200
@@ -62,10 +62,12 @@
 			case 'm':
 				outbuf = uts.machine;
 				break;
+#ifdef __linux__
 			case 'D':
 			case 'o':
 				outbuf = uts.domainname;
 				break;
+#endif
 			case 'd':
 				strftime(buf, sizeof(buf), fmtstr_d, localtime(&t));
 				break;
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to