Index: map.c
===================================================================
--- map.c	(revision 67251)
+++ map.c	(working copy)
@@ -21,7 +21,19 @@
 #define _XOPEN_SOURCE
 #endif /* ndef _XOPEN_SOURCE */
 
+#ifndef L_SET
+#define L_SET SEEK_SET
+#endif /* ndef L_SET */
 
+#ifndef L_INCR
+#define L_INCR SEEK_CUR
+#endif /* ndef L_INCR */
+
+#ifndef L_XTND
+#define L_XTND SEEK_END
+#endif /* ndef L_XTND */
+
+
 /*
  * Implementation Includes
  */
Index: Makefile.am
===================================================================
--- Makefile.am	(revision 67251)
+++ Makefile.am	(working copy)
@@ -114,6 +114,9 @@
 	--impl-header="<dirent.h>"                            \
 	--impl-header="<utime.h>"                             \
 	--impl-header="\"mph.h\""                             \
+	--impl-macro="L_SET=SEEK_SET"                         \
+	--impl-macro="L_INCR=SEEK_CUR"                        \
+	--impl-macro="L_XTND=SEEK_END"                        \
 	--rename-member=st_atime=st_atime_                    \
 	--rename-member=st_ctime=st_ctime_                    \
 	--rename-member=st_mtime=st_mtime_                    \
