From 042db90f48aad3d84846ef3abfaeb9fb3db72ff0 Mon Sep 17 00:00:00 2001 From: Simon Southwell Date: Thu, 18 Jan 2024 10:52:42 +0000 Subject: [PATCH] Fix in VUser.c for RTLD_DEFAULT definition when compiling on Linux for Icarus Verilog --- code/VUser.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/VUser.c b/code/VUser.c index 27b1def..94f763e 100644 --- a/code/VUser.c +++ b/code/VUser.c @@ -48,6 +48,13 @@ typedef long nodecast_t; typedef long nodecast_t; #endif +// For Icarus +#ifdef ICARUS +# ifndef RTLD_DEFAULT +# define RTLD_DEFAULT ((void *) 0) +# endif +#endif + static void VUserInit (const unsigned node); /////////////////////////////////////////////////////////////