Skip to content

Commit 17de365

Browse files
tmn505svanheule
authored andcommitted
zycast: disable build on non-Linux OS
Fails with following errors on MacOS builder: firmware-utils/src/zycast.c:205:35: error: use of undeclared identifier 'MSG_MORE' if (send(sockfd, phdr, HDRSIZE, MSG_MORE | MSG_DONTROUTE) < 0) ^ firmware-utils/src/zycast.c:285:39: error: use of undeclared identifier 'SO_BINDTODEVICE' if (setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE, optarg, strlen(optarg)) < 0) ^ These seem to be Linux only definitions and there are no equivalents, so leave rewrite of zycast to someone interested in running it on other OS. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
1 parent a5dfb5f commit 17de365

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ FW_UTIL(uimage_sgehdr "" "" "${ZLIB_LIBRARIES}")
110110
FW_UTIL(wrt400n src/cyg_crc32.c "" "")
111111
FW_UTIL(xiaomifw "" "" "")
112112
FW_UTIL(xorimage "" "" "")
113-
FW_UTIL(zycast "" "" "")
113+
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
114+
FW_UTIL(zycast "" "" "")
115+
endif()
114116
FW_UTIL(zyimage "" "" "")
115117
FW_UTIL(zytrx "" "" "")
116118
FW_UTIL(zyxbcm "" "" "")

0 commit comments

Comments
 (0)