Mercurial > hg > early-roguelike
comparison srogue/rogue.h @ 192:3de8058dd549
srogue: provide type definitions if needed.
If not defined in headers, uid_t and gid_t will be defined as
unsigned ints, and pid_t as int.
author | John "Elwin" Edwards |
---|---|
date | Mon, 03 Aug 2015 21:29:16 -0400 |
parents | fb25a62680c7 |
children | b67b99f6c92b |
comparison
equal
deleted
inserted
replaced
191:fb25a62680c7 | 192:3de8058dd549 |
---|---|
35 #endif | 35 #endif |
36 | 36 |
37 /* mdport functions */ | 37 /* mdport functions */ |
38 #ifdef HAVE_SYS_TYPES_H | 38 #ifdef HAVE_SYS_TYPES_H |
39 #include <sys/types.h> | 39 #include <sys/types.h> |
40 #endif | |
41 | |
42 #ifndef uid_t | |
43 typedef unsigned int uid_t; | |
44 #endif | |
45 #ifndef gid_t | |
46 typedef unsigned int gid_t; | |
47 #endif | |
48 #ifndef pid_t | |
49 typedef int pid_t; | |
40 #endif | 50 #endif |
41 | 51 |
42 int md_chmod(const char *filename, int mode); | 52 int md_chmod(const char *filename, int mode); |
43 char *md_crypt(const char *key, const char *salt); | 53 char *md_crypt(const char *key, const char *salt); |
44 int md_dsuspchar(void); | 54 int md_dsuspchar(void); |