diff options
author | khali <khali> | 2015-04-27 08:36:16 +0000 |
---|---|---|
committer | khali <khali> | 2015-04-27 08:36:16 +0000 |
commit | a6e5b96b3ec62a0d27f3daa706e3554bebf39aff (patch) | |
tree | aab2e0e6114fd61c3f3e4a2223e60219086ecc90 /Makefile | |
parent | 12864a3f3af38ee0ec71b9796bd10ee98b5d32dd (diff) | |
download | dmidecode-a6e5b96b3ec62a0d27f3daa706e3554bebf39aff.tar.gz |
dmidecode: Add support for 64-bit addresses
We can easily support 64-bit addresses by compiling dmidecode with
-D_FILE_OFFSET_BITS=64. This looks reasonably portable.
Also add support for 32-bit long tables, as SMBIOS 3.0.0 allows it,
even though I don't expect to see such a long DMI table any time soon.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4,7 +4,7 @@ # VPD Decode # # Copyright (C) 2000-2002 Alan Cox <alan@redhat.com> -# Copyright (C) 2002-2007 Jean Delvare <jdelvare@suse.de> +# Copyright (C) 2002-2015 Jean Delvare <jdelvare@suse.de> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -15,6 +15,10 @@ CC = gcc CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef + +# Let lseek and mmap support 64-bit wide offsets +CFLAGS += -D_FILE_OFFSET_BITS=64 + #CFLAGS += -DBIGENDIAN #CFLAGS += -DALIGNMENT_WORKAROUND |