Skip to content

Commit

Permalink
Define inline as __inline__ when using GCC with -std=c89
Browse files Browse the repository at this point in the history
  • Loading branch information
HiGarfield committed Jan 7, 2025
1 parent c01f289 commit 9c89233
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/process_iterator_freebsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@
#endif

#if defined(__STRICT_ANSI__) || !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
#ifdef __GNUC__
#define inline __inline__
#else
#define inline
#endif
#endif

#include <fcntl.h>
#include <kvm.h>
Expand Down

0 comments on commit 9c89233

Please sign in to comment.