summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-07-12 22:54:37 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-07-12 22:54:37 -0400
commitf1644c324bd6bc0ed8f48275d64ccde4ce13a044 (patch)
tree895394a44409d6149b071d4399c4b68d23763867 /contrib
parent3dca12fb62448f52663c859a089244d9cf37c5e3 (diff)
Eliminate doubly defined _LARGEFILE_SOURCE warning
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fallocate.c4
-rw-r--r--contrib/make-sparse.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/contrib/fallocate.c b/contrib/fallocate.c
index 01d4af7d..a05b8f2e 100644
--- a/contrib/fallocate.c
+++ b/contrib/fallocate.c
@@ -21,8 +21,12 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE
+#endif
+#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE
+#endif
#include <sys/stat.h>
#include <sys/syscall.h>
diff --git a/contrib/make-sparse.c b/contrib/make-sparse.c
index 1b3d5506..98b86b06 100644
--- a/contrib/make-sparse.c
+++ b/contrib/make-sparse.c
@@ -9,8 +9,12 @@
* %End-Header%
*/
+#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE
+#endif
+#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE
+#endif
#include <stdio.h>
#include <unistd.h>