Skip to content

Commit 0a60494

Browse files
authored
Merge pull request #249 from ftapajos/fix-build-gcc-15
fix build with gcc 15
2 parents a4bc39e + 37edc0c commit 0a60494

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paho-mqtt-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ mod build {
285285

286286
let mut cmk_cfg = cmake::Config::new("paho.mqtt.c/");
287287
cmk_cfg
288+
.define("CMAKE_C_STANDARD", "11")
288289
.define("PAHO_BUILD_SHARED", "off")
289290
.define("PAHO_BUILD_STATIC", "on")
290291
.define("PAHO_ENABLE_TESTING", "off")

0 commit comments

Comments
 (0)