summaryrefslogtreecommitdiff
path: root/tests/test-open.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-open.c')
-rw-r--r--tests/test-open.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test-open.c b/tests/test-open.c
index b82b0ba2..84df160f 100644
--- a/tests/test-open.c
+++ b/tests/test-open.c
@@ -1,5 +1,5 @@
/* Test of opening a file descriptor.
- Copyright (C) 2007-2024 Free Software Foundation, Inc.
+ Copyright (C) 2007-2025 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -25,8 +25,13 @@ SIGNATURE_CHECK (open, int, (char const *, int, ...));
#include <errno.h>
#include <stdio.h>
+#include <sys/stat.h>
#include <unistd.h>
+#if HAVE_DECL_ALARM
+# include <signal.h>
+#endif
+
#include "macros.h"
#define BASE "test-open.t"