Skip to content

Commit

Permalink
Fix Non-Windows Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pegvin committed Feb 20, 2024
1 parent a305475 commit 883419c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
* IN THE SOFTWARE.
*/

#ifndef SFD_TARGET_WINDOWS
// Enable popen/pclose
#define _POSIX_C_SOURCE 2
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down

0 comments on commit 883419c

Please sign in to comment.