diff --git a/com.oracle.truffle.r.native/fficall/src/truffle_common/variables_common.h b/com.oracle.truffle.r.native/fficall/src/truffle_common/variables_common.h
index 50855e8d240ccfa9245a478fc4405100f234731e..b901507cebe10ac4296f925723f5efbbb2c21786 100644
--- a/com.oracle.truffle.r.native/fficall/src/truffle_common/variables_common.h
+++ b/com.oracle.truffle.r.native/fficall/src/truffle_common/variables_common.h
@@ -21,6 +21,7 @@
  * questions.
  */
 #define NO_FASTR_REDEFINE
+#include <stdlib.h>
 #include <string.h>
 #include <Rinterface.h>
 #include <trufflenfi.h>