* ServiceControllerPermissionTest.cs: Set eol-style to native. Fixed
[mono.git] / support / stdlib.c
index 16e5ea0461012daedad82f4faad7ecafb1b395d3..9ab875cab404568536fa1633cea40c5a9c1eb8f9 100644 (file)
@@ -4,7 +4,7 @@
  * Authors:
  *   Jonathan Pryor (jonpryor@vt.edu)
  *
- * Copyright (C) 2004 Jonathan Pryor
+ * Copyright (C) 2004-2005 Jonathan Pryor
  */
 
 #include <stdlib.h>
@@ -64,6 +64,16 @@ Mono_Posix_Stdlib_realloc (void* ptr, mph_size_t size)
        return realloc (ptr, (size_t) size);
 }
 
+#ifdef HAVE_SETKEY
+int
+Mono_Posix_Syscall_setkey (const char* key)
+{
+       errno = 0;
+       setkey (key);
+       return errno == 0 ? 0 : -1;
+}
+#endif /* ndef HAVE_SETKEY */
+
 G_END_DECLS
 
 /*