From c8a37eaf70f5131de1cdd3259e5c525acc5fa9ae Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 21 Oct 2022 18:31:19 +0200 Subject: [PATCH] libc: Add SIGINT define --- libs/libc/include/signal.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/libc/include/signal.h b/libs/libc/include/signal.h index b7a2dd0f..8790b487 100644 --- a/libs/libc/include/signal.h +++ b/libs/libc/include/signal.h @@ -1,7 +1,9 @@ #ifndef _SIGNAL_H #define _SIGNAL_H -typedef int sig_atomic_t; // FIXME: Implement signals (I'm trying to build bc, this header is only to satisfy it) and - // use a proper atomic integer type. +typedef int sig_atomic_t; // On the x86, writes to aligned 32-bit and 64-bit integers are always atomic. (Or that's what + // I understood) + +#define SIGINT 1 // Not implemented. #endif \ No newline at end of file