diff options
author | René Schümann <white06tiger@gmail.com> | 2015-03-20 12:32:29 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2015-03-20 12:32:29 +0000 |
commit | 539705d58fc39a28388ff18c695dd406f4ffd1d9 (patch) | |
tree | 51db7a37a66c09f41734ba5573d972aae9f30d71 /plugins/MirOTR/Libgcrypt/custom/unistd.h | |
parent | 90171f125f36488dc08f5cfe0b0d4b78d995f08d (diff) |
MirOTR: Libgcrypt and Libgpg-error update
Libgcrypt 1.4.6 => 1.6.3
Libgpg-error 1.9 => 1.18
git-svn-id: http://svn.miranda-ng.org/main/trunk@12449 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/Libgcrypt/custom/unistd.h')
-rw-r--r-- | plugins/MirOTR/Libgcrypt/custom/unistd.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/plugins/MirOTR/Libgcrypt/custom/unistd.h b/plugins/MirOTR/Libgcrypt/custom/unistd.h new file mode 100644 index 0000000000..34ecb918d1 --- /dev/null +++ b/plugins/MirOTR/Libgcrypt/custom/unistd.h @@ -0,0 +1,43 @@ +#ifndef NG_UNISTD_H +#define NG_UNISTD_H +#include <basetsd.h> +#include <stddef.h> +#include <errno.h> +#include <sys/stat.h> + +#ifndef S_IWUSR +# define S_IWUSR _S_IWRITE +#endif +#ifndef S_IRUSR +# define S_IRUSR _S_IREAD +#endif +#ifndef S_IXUSR +# define S_IXUSR _S_IEXEC +#endif +#ifndef S_ISREG +# define S_ISREG(A) (1) +#endif + +#ifndef offsetof +# define offsetof(type, member) ((size_t)&((type *)0)->member) +#endif + +#include <io.h> +#define F_OK 0 /* Check for file existence */ +#define X_OK 1 /* Check for execute permission. */ +#define W_OK 2 /* Check for write permission */ +#define R_OK 4 /* Check for read permission */ + +#define open _open +#define close _close +#define fileno _fileno +#define setmode _setmode +#define access _access +#define lseek _lseek +#define read _read +#define write _write + +#include <process.h> +#define getpid _getpid + +#endif // NG_UNISTD_H |