Commit fc3ecc2a authored by Stefan Tauner's avatar Stefan Tauner

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: default avatarStefan Tauner <>
Acked-by: default avatarCarl-Daniel Hailfinger <>
parent 57cdd6ba
......@@ -926,7 +926,7 @@ endif
ifeq ($(TARGET_OS), SunOS)
LIBS += -lsocket
LIBS += -lsocket -lnsl
......@@ -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)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment