Remove confusing #ifndef environ
[exim.git] / src / src / readconf.c
index cf5f069e90b418a65a776002b8547e4d5d1ca8a2..ead74c1d039c41a0811b06b111183b16ff6619b5 100644 (file)
@@ -11,11 +11,14 @@ implementation of the conditional .ifdef etc. */
 
 #include "exim.h"
 
+extern char **environ;
+
 static void fn_smtp_receive_timeout(const uschar * name, const uschar * str);
 static void save_config_line(const uschar* line);
 static void save_config_position(const uschar *file, int line);
 static void print_config(BOOL admin);
 
+
 #define CSTATE_STACK_SIZE 10
 
 
@@ -2708,7 +2711,7 @@ if (type == NULL)
       size_t n;
       for (p = USS environ; *p; p++) ;
       n = p - USS environ;
-      qsort(environ, p - USS environ, sizeof(*p), (__compar_fn_t) string_compare_by_pointer);
+      qsort(environ, p - USS environ, sizeof(*p), string_compare_by_pointer);
 
       for (p = USS environ; *p; p++)
         {