The R Project SVN R

Rev

Rev 18760 | Rev 36498 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18760 Rev 24069
Line 25... Line 25...
25
 
25
 
26
#ifdef HAVE_CONFIG_H
26
#ifdef HAVE_CONFIG_H
27
#include <config.h>
27
#include <config.h>
28
#endif
28
#endif
29
 
29
 
30
/*
-
 
31
if defined(__MWERKS__) && defined(Macintosh)
-
 
32
#  define MACINTOSH
-
 
33
#  define EINTR 15
-
 
34
#endif  
-
 
35
 Jago: Gusi not available
-
 
36
*/
-
 
37
 
-
 
38
#include <stdio.h>
30
#include <stdio.h>
39
#include <string.h>
31
#include <string.h>
40
#if !defined(Macintosh)  /* Jago */
-
 
41
#include <sys/types.h>
32
#include <sys/types.h>
42
#else
-
 
43
#include <types.h>
-
 
44
#endif
-
 
45
#include <signal.h>
33
#include <signal.h>
46
#ifdef HAVE_ERRNO_H
34
#ifdef HAVE_ERRNO_H
47
#include <errno.h>
35
#include <errno.h>
48
#endif
36
#endif
49
 
37
 
50
#if defined(Win32)
38
#if defined(Win32)
51
#  include <winsock.h>
39
#  include <winsock.h>
52
#  include <io.h>
40
#  include <io.h>
53
#elif defined(MACINTOSH)
-
 
54
#  include <GUSI.h>
-
 
55
#else
41
#else
56
#  ifdef HAVE_UNISTD_H
42
#  ifdef HAVE_UNISTD_H
57
#    include <unistd.h>
43
#    include <unistd.h>
58
#  endif
44
#  endif
59
#  ifdef HAVE_BSD_NETWORKING
45
#  ifdef HAVE_BSD_NETWORKING
Line 64... Line 50...
64
#endif
50
#endif
65
 
51
 
66
#include <R_ext/Error.h>
52
#include <R_ext/Error.h>
67
#include "sock.h"
53
#include "sock.h"
68
 
54
 
69
#if defined(__hpux) || defined(MACINTOSH)
55
#if defined(__hpux)
70
   extern int h_errno; /* HP-UX 9.05 and GUSI forget to declare this in netdb.h */
56
   extern int h_errno; /* HP-UX 9.05 forgets to declare this in netdb.h */
71
#endif
57
#endif
72
 
58
 
73
#define MAXBACKLOG 5
59
#define MAXBACKLOG 5
74
 
60
 
75
#ifndef HAVE_SOCKETS
61
#ifndef HAVE_SOCKETS