--- a/src/libstrongswan/plugins/wolfssl/wolfssl_plugin.c
+++ b/src/libstrongswan/plugins/wolfssl/wolfssl_plugin.c
@@ -50,6 +50,9 @@
 #ifndef FIPS_MODE
 #define FIPS_MODE 0
 #endif
+#ifdef RNG
+#undef RNG
+#endif
 
 typedef struct private_wolfssl_plugin_t private_wolfssl_plugin_t;
 
