aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-05-13 22:09:57 +0200
committerThomas White <taw@physics.org>2019-05-16 15:15:49 +0200
commitc5ecba35096aecd4a5ceeb065e9c77ca16463373 (patch)
tree493f89f0d0a211468454de891e89558d1bfce2d5
parent847f944fcfdbebf3a8b6173bf7a57a96344ddda0 (diff)
Add check for sys/utsname.h
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 61818a11..6303b872 100644
--- a/meson.build
+++ b/meson.build
@@ -92,6 +92,10 @@ if compiler.has_header('netdb.h')
conf_data.set('HAVE_NETDB_H', 1)
endif
+if compiler.has_header('sys/utsname.h')
+ conf_data.set('HAVE_SYS_UTSNAME_H', 1)
+endif
+
configure_file(output : 'config.h',
configuration : conf_data)