summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_System_Driver.H2
1 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H
index db3784d7b..0bcc7973b 100644
--- a/FL/Fl_System_Driver.H
+++ b/FL/Fl_System_Driver.H
@@ -29,6 +29,7 @@
#include <FL/filename.H>
#include <FL/Fl_Preferences.H>
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
@@ -79,6 +80,7 @@ public:
// implement these to support cross-platform file operations
virtual char *utf2mbcs(const char *s) {return (char*)s;}
virtual char *getenv(const char* v);
+ virtual int putenv(char* v) {return ::putenv(v);}
virtual int open(const char* f, int oflags, int pmode) {return -1;}
virtual FILE *fopen(const char* f, const char *mode) {return NULL;}
virtual int system(const char* cmd) {return -1;}