Skip to content

Commit

Permalink
HBSD: Gate environ declaration to FreeBSD
Browse files Browse the repository at this point in the history
Other operating systems declare the environ global symbol in global
headers (like unistd.h in Ubuntu).

Signed-off-by:	Shawn Webb <[email protected]>
  • Loading branch information
lattera committed Oct 8, 2024
1 parent 1a5c3d9 commit c1cb32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libarchive/filter_fork_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
# include <unistd.h>
#endif

#if defined(HAVE_POSIX_SPAWNP)
#if defined(HAVE_POSIX_SPAWNP) && defined(__FreeBSD__)
extern char *const environ[];
#endif

Expand Down

0 comments on commit c1cb32d

Please sign in to comment.