Skip to content

Commit

Permalink
ci: update to macos latest
Browse files Browse the repository at this point in the history
(cherry picked from commit e1e03c2)
  • Loading branch information
catenacyber authored and victorjulien committed Jul 3, 2023
1 parent 808198f commit 9c53586
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1391,8 +1391,7 @@ jobs:

macos-latest:
name: MacOS Latest
# use 10.15 for now. Build fails on macos-11 (aka macos-latest)
runs-on: macos-10.15
runs-on: macos-latest
needs: [prepare-deps]
steps:
# Cache Rust stuff.
Expand Down Expand Up @@ -1436,7 +1435,8 @@ jobs:
- run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests
- run: make -j2
- run: make check
# somehow it gets included by some C++ stdlib header (case unsensitive)
- run: rm libhtp/VERSION && make check
- run: tar xf prep/suricata-verify.tar.gz
- name: Running suricata-verify
run: python3 ./suricata-verify/run.py
Expand Down
7 changes: 7 additions & 0 deletions src/util-daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ void Daemonize (void)
through conf file */

/* Creates a new process */
#if defined(OS_DARWIN) && defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
pid = fork();
#if defined(OS_DARWIN) && defined(__clang__)
#pragma clang diagnostic pop
#endif

if (pid < 0) {
/* Fork error */
Expand Down

0 comments on commit 9c53586

Please sign in to comment.