waf: fix some missing newline compiler warnings
[sfrench/samba-autobuild/.git] / buildtools / wafsamba / samba_autoconf.py
index 6208e3b0439f0fac66028e29e66f8337ea5cce60..9d45ada13121ff8bce33a5da50aff7691a257c1e 100644 (file)
@@ -97,7 +97,7 @@ def CHECK_HEADER(conf, h, add_headers=False, lib=None):
     hdrs = hlist_to_string(conf, headers=h)
     if lib is None:
         lib = ""
-    ret = conf.check(fragment='%s\nint main(void) { return 0; }' % hdrs,
+    ret = conf.check(fragment='%s\nint main(void) { return 0; }\n' % hdrs,
                      type='nolink',
                      execute=0,
                      cflags=ccflags,