freebsd-ports/devel/libexplain/files/patch-libexplain__buffer__utsname.c
Danilo Egea Gondolfo e3c3b5d6f2 - Update from 1.2 to 1.3 patch level D012
PR:		ports/184885
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-22 00:21:49 +00:00

16 lines
495 B
C

--- libexplain/buffer/utsname.c.orig
+++ libexplain/buffer/utsname.c
@@ -49,11 +49,13 @@
explain_string_buffer_puts(sb, ", machine = ");
explain_string_buffer_puts_quoted_n(sb,
data->machine, sizeof(data->machine));
+#ifndef __FreeBSD__
#ifdef _GNU_SOURCE
explain_string_buffer_puts(sb, ", domainname = ");
explain_string_buffer_puts_quoted_n(sb,
data->domainname, sizeof(data->domainname));
#endif
+#endif
explain_string_buffer_puts(sb, " }");
}