aboutsummaryrefslogtreecommitdiff
path: root/libiberty/unlink-if-ordinary.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/unlink-if-ordinary.c')
-rw-r--r--libiberty/unlink-if-ordinary.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libiberty/unlink-if-ordinary.c b/libiberty/unlink-if-ordinary.c
index 297b14bbc7d..1f21806b8a6 100644
--- a/libiberty/unlink-if-ordinary.c
+++ b/libiberty/unlink-if-ordinary.c
@@ -1,5 +1,5 @@
/* unlink-if-ordinary.c - remove link to a file unless it is special
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This file is part of the libiberty library. This library is free
software; you can redistribute it and/or modify it under the
@@ -39,6 +39,8 @@ was made to unlink the file because it is special.
#include "config.h"
#endif
+#include <sys/types.h>
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -58,8 +60,7 @@ was made to unlink the file because it is special.
#endif
int
-unlink_if_ordinary (name)
- const char *name;
+unlink_if_ordinary (const char *name)
{
struct stat st;