From 539705d58fc39a28388ff18c695dd406f4ffd1d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCmann?= Date: Fri, 20 Mar 2015 12:32:29 +0000 Subject: 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 --- plugins/MirOTR/Libgcrypt/custom/unistd.h | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 plugins/MirOTR/Libgcrypt/custom/unistd.h (limited to 'plugins/MirOTR/Libgcrypt/custom/unistd.h') 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 +#include +#include +#include + +#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 +#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 +#define getpid _getpid + +#endif // NG_UNISTD_H -- cgit v1.2.3