summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getdnnm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/getdnnm.c')
-rw-r--r--libc/sysdeps/linux/common/getdnnm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getdnnm.c b/libc/sysdeps/linux/common/getdnnm.c
index 46751b1e7..5e1f97b95 100644
--- a/libc/sysdeps/linux/common/getdnnm.c
+++ b/libc/sysdeps/linux/common/getdnnm.c
@@ -1,7 +1,8 @@
#include <string.h>
#include <unistd.h>
-#include <sys/utsname.h>
#include <errno.h>
+#define __USE_GNU
+#include <sys/utsname.h>
int
getdomainname(char *name, size_t len)