- Don't define __USE macros. They are reserved for internal OS use.
authorChristos Zoulas <christos@zoulas.com>
Fri, 13 Feb 2009 20:27:20 +0000 (15:27 -0500)
committerChristos Zoulas <christos@zoulas.com>
Fri, 13 Feb 2009 20:27:20 +0000 (15:27 -0500)
- Move the largefile64 macro to the beginning of the file to avoid
  redefinitions.

include/am_defs.h

index 8dbf4f7383f4cfb58cee634ca3b4135ec2f2448b..c937b2ec8efbca849f5543377460d4ec09cadbf8 100644 (file)
@@ -49,6 +49,8 @@
 #ifndef _AM_DEFS_H
 #define _AM_DEFS_H
 
+#define _LARGEFILE64_SOURCE
+
 /*
  * Actions to take if ANSI C.
  */
@@ -216,11 +218,6 @@ struct sigevent;
  */
 #if HAVE_FCNTL_H
 # ifdef HAVE_LINUX_LOOP_H
-/* so I can mount large files as loop devices */
-/* XXX: need to move these two LARGEFILE defines to a better place */
-#  define _LARGEFILE64_SOURCE
-#  define __USE_LARGEFILE64
-# endif /* HAVE_LINUX_LOOP_H */
 # include <fcntl.h>
 #endif /* HAVE_FCNTL_H */