]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/test-crypto-tlscredsx509.c
meson: get opengl compilation flags from OPENGL_CFLAGS
[mirror_qemu.git] / tests / test-crypto-tlscredsx509.c
index 940a026c6ee23deda778135e57e7855d40866149..f487349c32d765ffcd30329c6bdf2c843242e13e 100644 (file)
@@ -23,6 +23,7 @@
 #include "crypto-tls-x509-helpers.h"
 #include "crypto/tlscredsx509.h"
 #include "qapi/error.h"
+#include "qemu/module.h"
 
 #ifdef QCRYPTO_HAVE_TLS_TEST_SUPPORT
 
@@ -140,7 +141,7 @@ int main(int argc, char **argv)
 
     module_call_init(MODULE_INIT_QOM);
     g_test_init(&argc, &argv, NULL);
-    setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1);
+    g_setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1);
 
     mkdir(WORKDIR, 0700);