From 00f71442ff365d03a6aaf3403892f339371e62f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Otto=20Kek=C3=A4l=C3=A4inen?= Date: Sun, 1 May 2022 00:32:39 -0700 Subject: [PATCH] Fix compiler warning by including unistd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Function sleep() is part of unistd so it should be explicitly included to avoid compiler warning: implicit declaration of function ‘sleep’ [-Wimplicit-function-declaration] --- demo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/demo.c b/demo.c index fd67ac2..215af59 100644 --- a/demo.c +++ b/demo.c @@ -3,6 +3,7 @@ */ #include +#include int main() {