[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gawk-3.1.4 can not be compiled on MS Interix using MSVC
From: |
Aleksey Cheusov |
Subject: |
gawk-3.1.4 can not be compiled on MS Interix using MSVC |
Date: |
Mon, 29 Aug 2005 21:29:04 +0300 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
gawk-3.1.4 can not be compiled on MS Interix using MSVC (/bin/cc).
Linker failes because of unresolved function strcmp_ulong and strcpy_ulong.
The following patch fixes this bug.
diff -Nurb gawk-3.1.4.orig/awk.h gawk-3.1.4/awk.h
--- gawk-3.1.4.orig/awk.h Mon Jul 26 17:11:05 2004
+++ gawk-3.1.4/awk.h Mon Aug 29 15:41:22 2005
@@ -1048,10 +1048,12 @@
extern size_t optimal_bufsize P((int fd, struct stat *sbuf));
extern int ispath P((const char *file));
extern int isdirpunct P((int c));
-#if defined(_MSC_VER) && !defined(_WIN32)
+#ifdef HAVE_MEMCPY_ULONG
extern char *memcpy_ulong P((char *dest, const char *src, unsigned long l));
-extern void *memset_ulong P((void *dest, int val, unsigned long l));
#define memcpy memcpy_ulong
+#endif
+#ifdef HAVE_MEMSET_ULONG
+extern void *memset_ulong P((void *dest, int val, unsigned long l));
#define memset memset_ulong
#endif
/* io.c */
diff -Nurb gawk-3.1.4.orig/configure.ac gawk-3.1.4/configure.ac
--- gawk-3.1.4.orig/configure.ac Sun Aug 1 14:47:06 2004
+++ gawk-3.1.4/configure.ac Mon Aug 29 15:59:52 2005
@@ -194,6 +194,9 @@
esac
AC_CHECK_LIB(m, fmod)
+AC_CHECK_LIB(c, memset_ulong, [CFLAGS="$CFLAGS -DHAVE_MEMSET_ULONG"])
+AC_CHECK_LIB(c, memcpy_ulong, [CFLAGS="$CFLAGS -DHAVE_MEMCPY_ULONG"])
+
AC_CHECK_FUNCS(fmod getgrent getgroups grantpt iswctype mbrlen \
memcmp memcpy memmove memset setlocale snprintf strchr \
strerror strftime strncasecmp strtod strtoul system tzset \
--
Best regards, Aleksey Cheusov.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gawk-3.1.4 can not be compiled on MS Interix using MSVC,
Aleksey Cheusov <=