aboutsummaryrefslogtreecommitdiff
path: root/libXpm
diff options
context:
space:
mode:
Diffstat (limited to 'libXpm')
-rw-r--r--libXpm/src/RdFToBuf.c1
-rw-r--r--libXpm/src/RdFToI.c1
-rw-r--r--libXpm/src/amigax.h4
-rw-r--r--libXpm/src/config.h3
-rw-r--r--libXpm/src/makefile34
5 files changed, 41 insertions, 2 deletions
diff --git a/libXpm/src/RdFToBuf.c b/libXpm/src/RdFToBuf.c
index b719960af..d142750de 100644
--- a/libXpm/src/RdFToBuf.c
+++ b/libXpm/src/RdFToBuf.c
@@ -52,6 +52,7 @@
#endif
#if defined(FOR_MSW) || defined(WIN32)
#include <io.h>
+typedef long off_t;
#define stat _stat
#define fstat _fstat
#define fdopen _fdopen
diff --git a/libXpm/src/RdFToI.c b/libXpm/src/RdFToI.c
index e56e3f8b6..b27a6726d 100644
--- a/libXpm/src/RdFToI.c
+++ b/libXpm/src/RdFToI.c
@@ -43,6 +43,7 @@
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>
+typedef int pid_t;
#else
#ifdef FOR_MSW
#include <fcntl.h>
diff --git a/libXpm/src/amigax.h b/libXpm/src/amigax.h
index 213ed7619..b8f6ac4b7 100644
--- a/libXpm/src/amigax.h
+++ b/libXpm/src/amigax.h
@@ -48,8 +48,8 @@
/* really never used */
#define ZPixmap 2
-#define Bool int
-#define Status int
+typedef int Bool;
+typedef int Status;
#define True 1
#define False 0
diff --git a/libXpm/src/config.h b/libXpm/src/config.h
new file mode 100644
index 000000000..c22e05936
--- /dev/null
+++ b/libXpm/src/config.h
@@ -0,0 +1,3 @@
+#include <unistd.h>
+
+#define NO_ZPIPE
diff --git a/libXpm/src/makefile b/libXpm/src/makefile
new file mode 100644
index 000000000..cfd21c66b
--- /dev/null
+++ b/libXpm/src/makefile
@@ -0,0 +1,34 @@
+LIBRARY=libXpm
+
+INCLUDES += ..\include\X11
+
+CSRCS = \
+ Attrib.c \
+ CrBufFrI.c \
+ CrBufFrP.c \
+ CrDatFrI.c \
+ CrDatFrP.c \
+ CrIFrBuf.c \
+ CrIFrDat.c \
+ CrIFrP.c \
+ CrPFrBuf.c \
+ CrPFrDat.c \
+ CrPFrI.c \
+ Image.c \
+ Info.c \
+ RdFToBuf.c \
+ RdFToDat.c \
+ RdFToI.c \
+ RdFToP.c \
+ WrFFrBuf.c \
+ WrFFrDat.c \
+ WrFFrI.c \
+ WrFFrP.c \
+ create.c \
+ data.c \
+ hashtab.c \
+ misc.c \
+ parse.c \
+ rgb.c \
+ scan.c
+