]> www.infradead.org Git - users/sagi/libnvme.git/commit
build: Fix nss code snippet includes
authorTomas Bzatek <tbzatek@redhat.com>
Tue, 31 Jan 2023 22:27:53 +0000 (23:27 +0100)
committerTomas Bzatek <tbzatek@redhat.com>
Tue, 31 Jan 2023 22:27:53 +0000 (23:27 +0100)
commitddfb3ba036f9df2737c165b27f9b458dd83a7df8
tree9390d644051a9789374020ffc7f74c23a66af8c7
parent94dd6d027e482749d8a915aae5fd52ef7323c054
build: Fix nss code snippet includes

With hardened distribution CFLAGS the meson code snippet wouldn't compile:

Compiler stderr:
  .build/meson-private/tmpy2z1t5q4/testfile.c: In function 'main':
  .build/meson-private/tmpy2z1t5q4/testfile.c:2:30: error: storage size of 'hints' isn't known
      2 |              struct addrinfo hints, *result;
        |                              ^~~~~
  .build/meson-private/tmpy2z1t5q4/testfile.c:3:21: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
      3 |              return getaddrinfo(argv[1], argv[2], &hints, &result);
        |                     ^~~~~~~~~~~
meson.build