summaryrefslogtreecommitdiff
path: root/mkspecs/irix-cc/qplatformdefs.h
Unidiff
Diffstat (limited to 'mkspecs/irix-cc/qplatformdefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--mkspecs/irix-cc/qplatformdefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/irix-cc/qplatformdefs.h b/mkspecs/irix-cc/qplatformdefs.h
index c6eaa2f..8666daf 100644
--- a/mkspecs/irix-cc/qplatformdefs.h
+++ b/mkspecs/irix-cc/qplatformdefs.h
@@ -30,59 +30,63 @@
30#include <sys/time.h> 30#include <sys/time.h>
31#include <sys/shm.h> 31#include <sys/shm.h>
32#include <sys/socket.h> 32#include <sys/socket.h>
33#include <sys/stat.h> 33#include <sys/stat.h>
34#include <sys/wait.h> 34#include <sys/wait.h>
35 35
36// DNS header files are not fully covered by X/Open specifications. 36// DNS header files are not fully covered by X/Open specifications.
37// In particular nothing is said about res_* :/ 37// In particular nothing is said about res_* :/
38// On IRIX header files <netinet/in.h> and <arpa/nameser.h> are not 38// On IRIX header files <netinet/in.h> and <arpa/nameser.h> are not
39// included by <resolv.h>. Note that <arpa/nameser.h> must be included 39// included by <resolv.h>. Note that <arpa/nameser.h> must be included
40// before <resolv.h>. 40// before <resolv.h>.
41#include <netinet/in.h> 41#include <netinet/in.h>
42#include <arpa/nameser.h> 42#include <arpa/nameser.h>
43#include <resolv.h> 43#include <resolv.h>
44 44
45 45
46#if !defined(QT_NO_COMPAT) 46#if !defined(QT_NO_COMPAT)
47 #define QT_STATBUF struct stat 47 #define QT_STATBUF struct stat
48 #define QT_STATBUF4TSTATstruct stat 48 #define QT_STATBUF4TSTATstruct stat
49 #define QT_STAT ::stat 49 #define QT_STAT ::stat
50 #define QT_FSTAT ::fstat 50 #define QT_FSTAT ::fstat
51 #define QT_STAT_REG S_IFREG 51 #define QT_STAT_REG S_IFREG
52 #define QT_STAT_DIR S_IFDIR 52 #define QT_STAT_DIR S_IFDIR
53 #define QT_STAT_MASK S_IFMT 53 #define QT_STAT_MASK S_IFMT
54 #define QT_STAT_LNK S_IFLNK 54 #define QT_STAT_LNK S_IFLNK
55 #define QT_FILENO fileno 55 #define QT_FILENO fileno
56 #define QT_OPEN ::open 56 #define QT_OPEN ::open
57 #define QT_CLOSE ::close 57 #define QT_CLOSE ::close
58 #define QT_LSEEK ::lseek 58 #define QT_LSEEK ::lseek
59 #define QT_READ ::read 59 #define QT_READ ::read
60 #define QT_WRITE ::write 60 #define QT_WRITE ::write
61 #define QT_ACCESS ::access 61 #define QT_ACCESS ::access
62 #define QT_GETCWD ::getcwd 62 #define QT_GETCWD ::getcwd
63 #define QT_CHDIR ::chdir 63 #define QT_CHDIR ::chdir
64 #define QT_MKDIR ::mkdir 64 #define QT_MKDIR ::mkdir
65 #define QT_RMDIR ::rmdir 65 #define QT_RMDIR ::rmdir
66 #define QT_OPEN_RDONLY O_RDONLY 66 #define QT_OPEN_RDONLY O_RDONLY
67 #define QT_OPEN_WRONLY O_WRONLY 67 #define QT_OPEN_WRONLY O_WRONLY
68 #define QT_OPEN_RDWR O_RDWR 68 #define QT_OPEN_RDWR O_RDWR
69 #define QT_OPEN_CREAT O_CREAT 69 #define QT_OPEN_CREAT O_CREAT
70 #define QT_OPEN_TRUNC O_TRUNC 70 #define QT_OPEN_TRUNC O_TRUNC
71 #define QT_OPEN_APPEND O_APPEND 71 #define QT_OPEN_APPEND O_APPEND
72#endif 72#endif
73 73
74 #define QT_SIGNAL_RETTYPEvoid 74 #define QT_SIGNAL_RETTYPEvoid
75 #define QT_SIGNAL_ARGS int 75 #define QT_SIGNAL_ARGS int
76 #define QT_SIGNAL_IGNORESIG_IGN 76 #define QT_SIGNAL_IGNORESIG_IGN
77 77
78#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500)
79 #define QT_SOCKLEN_T size_t
80#else
78 #define QT_SOCKLEN_T int 81 #define QT_SOCKLEN_T int
82#endif
79 83
80#if 0 84#if 0
81// on Irix 6.5 and better only - but how to check for it? 85// on Irix 6.5 and better only - but how to check for it?
82#if defined(_SGIAPI) 86#if defined(_SGIAPI)
83 #define QT_SNPRINTF ::snprintf 87 #define QT_SNPRINTF ::snprintf
84 #define QT_VSNPRINTF ::vsnprintf 88 #define QT_VSNPRINTF ::vsnprintf
85#endif 89#endif
86#endif 90#endif
87 91
88#endif // QPLATFORMDEFS_H 92#endif // QPLATFORMDEFS_H