On 15/05/2009, Luca Favatella <[email protected]> wrote:
[...]
> On 15/05/2009, walter harms <[email protected]> wrote:
[...]
>> IMHO,
>> the define IUCLC should go plattform.h
>> and domainname i would expect something like HAVE_NO_UTS_DOMAINAME also
>> going into plattform.h
>
> Ok.
> I'll try to submit an updated patch.

Attached is the new version of the patch about domainname, named
20090515_1618_busybox.upstream.domainname.diff

At the moment no IUCLC new patch.


Luca Favatella
diff -Naur busybox-1.13.3/include/platform.h busybox-1.13.3.mod/include/platform.h
--- busybox-1.13.3/include/platform.h	2009-02-26 12:47:26.000000000 +0100
+++ busybox-1.13.3.mod/include/platform.h	2009-05-15 18:18:06.000000000 +0200
@@ -363,4 +363,9 @@
 #endif
 #endif
 
+/* The field domainname of struct utsname is Linux specific. */
+#ifndef __linux__
+#define HAVE_NO_UTSNAME_DOMAINNAME
+#endif
+
 #endif	/* platform.h	*/
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-15 18:15:51.000000000 +0200
@@ -62,10 +62,12 @@
 			case 'm':
 				outbuf = uts.machine;
 				break;
+#ifndef HAVE_NO_UTSNAME_DOMAINNAME
 			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