2017-06-11 guidod <guidod@gmx.de>
+ * fix portability issues by introducing <zzip/__errno.h>
* fix portability issues by introducing <zzip/__mkdir.h>
* fix portability issues by introducing <zzip/__string.h> for strndup
* reuse portability header <zzip/__fnmatch.h> in bins/*.c
zzip_HEADERS = $(libzzip_la_headers) \
$(libzzipmmapped_la_headers) \
$(libzzipfseeko_la_headers)
-noinst_HEADERS = __debug.h __hints.h __mmap.h __dirent.h __fnmatch.h __string.h __mkdir.h
+noinst_HEADERS = __debug.h __hints.h __mmap.h __dirent.h __fnmatch.h __string.h __mkdir.h __errno.h
#
VERSION_INFO=@VERSION_INFO@
RELEASE_INFO=@RELEASE_INFO@
$(libzzipmmapped_la_headers) \
$(libzzipfseeko_la_headers)
-noinst_HEADERS = __debug.h __hints.h __mmap.h __dirent.h __fnmatch.h __string.h __mkdir.h
+noinst_HEADERS = __debug.h __hints.h __mmap.h __dirent.h __fnmatch.h __string.h __mkdir.h __errno.h
#
libzzip_la_SOURCES = \
zip.c \
--- /dev/null
+#ifndef __ZZIP_INTERNAL_ERRNO_H
+#define __ZZIP_INTERNAL_ERRNO_H
+
+#include <errno.h>
+
+/* Mingw cross compile fix */
+#ifndef EBADMSG
+#define EBADMSG 74
+#endif
+
+#endif
#include <zzip/fetch.h>
#include <zzip/__mmap.h>
#include <zzip/__fnmatch.h>
+#include <zzip/__errno.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <zzip/mmapped.h>
#include <zzip/memdisk.h>
#include <zzip/__fnmatch.h>
+#include <zzip/__errno.h>
#define ___ {
#define ____ }
#include <zzip/fetch.h>
#include <zzip/__debug.h>
#include <zzip/__mmap.h>
-#include <zzip/__fnmatch.h>
#include <zzip/__string.h>
+#include <zzip/__fnmatch.h>
+#include <zzip/__errno.h>
#include <stdlib.h>
#include <sys/stat.h>