Bug 927427 - use __LP64__ in FileUtils.cpp for Linux; r=bsmedberg
authorNathan Froyd <froydnj@mozilla.com>
Wed, 16 Oct 2013 11:14:05 -0400
changeset 165701 d3e014a0b5ad0831f1e6ff42e82f7956da77e6d6
parent 165700 d75468812ea4506eee534c5bda18225ffab32530
child 165702 09fcb0805831f8e131a9bed075c32f1822a2de29
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs927427
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 927427 - use __LP64__ in FileUtils.cpp for Linux; r=bsmedberg
xpcom/glue/FileUtils.cpp
--- a/xpcom/glue/FileUtils.cpp
+++ b/xpcom/glue/FileUtils.cpp
@@ -220,17 +220,17 @@ mozilla::ReadAheadFile(nsIFile* aFile, c
 }
 
 #endif // !defined(XPCOM_GLUE)
 
 #if defined(LINUX) && !defined(ANDROID)
 
 static const unsigned int bufsize = 4096;
 
-#ifdef HAVE_64BIT_OS
+#ifdef __LP64__
 typedef Elf64_Ehdr Elf_Ehdr;
 typedef Elf64_Phdr Elf_Phdr;
 static const unsigned char ELFCLASS = ELFCLASS64;
 typedef Elf64_Off Elf_Off;
 #else
 typedef Elf32_Ehdr Elf_Ehdr;
 typedef Elf32_Phdr Elf_Phdr;
 static const unsigned char ELFCLASS = ELFCLASS32;