Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / src / sysdep.c
blobe4062a3323caf0184fdb2d62c960cc40d8f4747d
1 /**************************************************************************
3 * Copyright (C) 1995 Silicon Graphics, Inc.
5 * These coded instructions, statements, and computer programs were
6 * developed by SGI for public use. If any changes are made to this code
7 * please try to get the changes back to the author. Feel free to make
8 * modifications and changes to the code and release it.
10 **************************************************************************/
12 #include "sysdep.h"
13 /* strerror() */
14 #ifndef HAVE_STRERROR
15 /* strerror is not available on SunOS 4.1.3 and others */
16 extern int sys_nerr;
17 extern char *sys_errlist[];
18 extern int errno;
20 char *strerror(int errnum)
23 if (errnum<sys_nerr)
25 return(sys_errlist[errnum]);
28 return(0);
31 #endif /* strerror() */
34 /* stub routines for NT */
36 #ifdef WIN32
37 #include <winsock.h>
38 #include <process.h>
40 int getpid(void) {
42 return GetCurrentThreadId();
45 void sleep(int sec) {
47 Sleep(sec*1000);
49 #endif /* WIN32 */