Ticket #55415: Tiger-patch-libuv-src-unix-core.c.diff
File Tiger-patch-libuv-src-unix-core.c.diff, 534 bytes (added by ballapete (Peter "Pete" Dyballa), 7 years ago) |
---|
-
Utilities/cmlibuv/src/unix/core.c
old new 1289 1289 1290 1290 1291 1291 int uv_os_unsetenv(const char* name) { 1292 /* Mac OS X before Leopard, 10.5, has void unsetenv */ 1293 #if __MAC_OS_X_VERSION_MIN_REQUIRED > 1040 1292 1294 if (unsetenv(name) != 0) 1293 1295 return -errno; 1294 1296 1297 #else 1298 unsetenv(name); 1299 if (getenv(name) != NULL) /* if name still exists in environment, then no NULL pointer */ 1300 return -1; 1301 #endif 1302 1295 1303 return 0; 1296 1304 } 1297 1305