summaryrefslogtreecommitdiffstats
path: root/util/ich_descriptors_tool
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2016-03-13 12:57:03 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2016-03-13 12:57:03 +0000
commitfc3ecc2a812235fce1a4cdc7dc3338507150e8c7 (patch)
treee9c299b36ffcc06cc3da2fbcf9b6153fc7915df1 /util/ich_descriptors_tool
parent57cdd6ba66219f568917e58c3dc585c7d725ce45 (diff)
downloadflashrom-fc3ecc2a812235fce1a4cdc7dc3338507150e8c7.tar.gz
flashrom-fc3ecc2a812235fce1a4cdc7dc3338507150e8c7.tar.bz2
flashrom-fc3ecc2a812235fce1a4cdc7dc3338507150e8c7.zip
Fix compilation on SunOS
This came up when I was testing if building on SunOS still works on the buildbot's instance of OmniOS r151014 which is based on illumos. The fix is - to link against libnsl - a small C type fix in ich_descriptor_tool Corresponding to flashrom svn r1950. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'util/ich_descriptors_tool')
-rw-r--r--util/ich_descriptors_tool/ich_descriptors_tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ich_descriptors_tool/ich_descriptors_tool.c b/util/ich_descriptors_tool/ich_descriptors_tool.c
index c3d9ba164..ad3b6f00c 100644
--- a/util/ich_descriptors_tool/ich_descriptors_tool.c
+++ b/util/ich_descriptors_tool/ich_descriptors_tool.c
@@ -170,7 +170,7 @@ int main(int argc, char *argv[])
usage(argv, "Seeking to the end of the file failed");
#ifdef HAVE_MMAP
- buf = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0);
+ buf = (uint32_t *)mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0);
if (buf == (void *) -1)
#endif
{