Skip to content

Commit

Permalink
Fix sanitizer builds with clang (#1402)
Browse files Browse the repository at this point in the history
By including <stdatomic.h> after the other includes in the unit test, we
can avoid redefining a macro which led to a build failure.

Fixes #1394

---------

Signed-off-by: Viktor Söderqvist <[email protected]>
  • Loading branch information
zuiderkwast authored Dec 7, 2024
1 parent a2fe6af commit f20d629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unit/test_networking.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <stdatomic.h>

#include "../networking.c"
#include "../server.c"
#include "test_help.h"

#include <stdatomic.h>

int test_backupAndUpdateClientArgv(int argc, char **argv, int flags) {
UNUSED(argc);
UNUSED(argv);
Expand Down

0 comments on commit f20d629

Please sign in to comment.