Skip to content

Commit

Permalink
zycast: disable build on non-Linux OS
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tmn505 authored and svanheule committed Feb 14, 2024
1 parent a5dfb5f commit 17de365
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ FW_UTIL(uimage_sgehdr "" "" "${ZLIB_LIBRARIES}")
FW_UTIL(wrt400n src/cyg_crc32.c "" "")
FW_UTIL(xiaomifw "" "" "")
FW_UTIL(xorimage "" "" "")
FW_UTIL(zycast "" "" "")
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
FW_UTIL(zycast "" "" "")
endif()
FW_UTIL(zyimage "" "" "")
FW_UTIL(zytrx "" "" "")
FW_UTIL(zyxbcm "" "" "")

0 comments on commit 17de365

Please sign in to comment.