Skip to content

Commit fd9c4f1

Browse files
committed
Skip unuseful call try under MacOSX
1 parent 33cebd0 commit fd9c4f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dmidecode.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5677,8 +5677,10 @@ static u8 *dmi_table_get(off_t base, u32 *len, u16 num, u32 ver,
56775677
}
56785678
*len = size;
56795679
}
5680+
#ifndef __APPLE__
56805681
else
56815682
buf = mem_chunk(base, *len, devmem);
5683+
#endif
56825684

56835685
#ifdef USE_API_CALLS
56845686
// read tables from API call

0 commit comments

Comments
 (0)