summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-02-20 20:08:33 +0100
committerserg@serg.mylan <>2005-02-20 20:08:33 +0100
commit1bc6ae891314dbd85e9b08583d936375329f58dc (patch)
tree350d45d1c0dbdf570edc1a23e51a170a8404e777 /include
parent6904398874e7a2e73731474bd8d7df33f7b43c89 (diff)
downloadmariadb-git-1bc6ae891314dbd85e9b08583d936375329f58dc.tar.gz
portability fixes
Diffstat (limited to 'include')
-rw-r--r--include/config-win.h3
-rw-r--r--include/my_sys.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/include/config-win.h b/include/config-win.h
index 475141a1989..ba1a987f14c 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -310,9 +310,6 @@ inline double ulonglong2double(ulonglong value)
#define HAVE_SETFILEPOINTER
#define HAVE_VIO
-#define HAME_MMAP /* in mysys/my_mmap.c */
-#define HAVE_GETPAGESIZE /* in mysys/my_mmap.c */
-
#ifdef NOT_USED
#define HAVE_SNPRINTF /* Gave link error */
#define _snprintf snprintf
diff --git a/include/my_sys.h b/include/my_sys.h
index 9cce13e53dd..498a1bd30fe 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -796,7 +796,7 @@ void my_free_open_file_info(void);
ulonglong my_getsystime(void);
my_bool my_gethwaddr(uchar *to);
-#ifdef HAVE_MMAP
+#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#ifndef MAP_NOSYNC
@@ -815,6 +815,7 @@ my_bool my_gethwaddr(uchar *to);
#define MAP_NOSYNC 0x0800
#define MAP_FAILED ((void *)-1)
#define MS_SYNC 0x0000
+#define HAVE_MMAP
int my_getpagesize(void);
void *my_mmap(void *, size_t, int, int, int, my_off_t);