Skip to content

Commit

Permalink
runtime: fix building of alarm3f.c on Linux systems with modern glibc
Browse files Browse the repository at this point in the history
Popular UNIX systems (e.g. Linux, MacOS) have alarm() function
declared in unistd.h, there is no need to provide a separate forward
declaration, which could go easily out of date and create a conflict
at compile time.

Signed-off-by: Paul Osmialowski <[email protected]>
  • Loading branch information
pawosm-arm committed Jul 15, 2022
1 parent 92ca7fb commit 6c74b77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/flang/alarm3f.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@

#ifndef WINNT
#include <signal.h>
#include <unistd.h>
#include "ent3f.h"

/*
extern void (*signal(int, void (*)(int)))(int);
*/
extern int alarm();
*/

int ENT3F(ALARM, alarm)(int *time, void (*proc)())
{
Expand Down

0 comments on commit 6c74b77

Please sign in to comment.