sfm

simple file manager
git clone git://git.afify.dev/sfm
Log | Files | Refs | README | LICENSE

commit e2b1cebc12f0ead1f916ee63e7c14045bd870afd
parent 8737bb82119c4dfc60f8a706d0c16214ee726d07
Author: David Kalliecharan <david@david.science>
Date:   Thu, 13 May 2021 11:11:21 -0300

add linux/macOS preprocossor defines for signals

Diffstat:
Msfm.c | 2++
Mtermbox.c | 5+++++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/sfm.c b/sfm.c @@ -2,6 +2,8 @@ #if defined(__linux__) #define _GNU_SOURCE +#elif defined(__APPLE__) +#define _DARWIN_C_SOURCE #endif #include <sys/types.h> #include <sys/resource.h> diff --git a/termbox.c b/termbox.c @@ -1,3 +1,8 @@ +#if defined (__linux__) +#define _GNU_SOURCE +#elif defined (__APPLE__) +#define _DARWIN_C_SOURCE +#endif #include <assert.h> #include <stdlib.h> #include <string.h>