openat-die.c: avoid 'no previous prototype' warning
authorJim Meyering <meyering@redhat.com>
Thu, 16 Oct 2008 12:35:41 +0000 (14:35 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 16 Oct 2008 12:35:41 +0000 (14:35 +0200)
* lib/openat-die.c: Include "openat.h".
Reported by Reuben Thomas <rrt@sc3d.org>.

ChangeLog
lib/openat-die.c

index 8d470e8a5821e3a5f34ce33f47e52d75d0f49804..0394202ec441e28786e7bd00340acd598a2170c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-16  Jim Meyering  <meyering@redhat.com>
+
+       openat-die.c: avoid 'no previous prototype' warning
+       * lib/openat-die.c: Include "openat.h".
+       Reported by Reuben Thomas <rrt@sc3d.org>.
+
 2008-10-16  Simon Josefsson  <simon@josefsson.org>
 
        * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
index 6bc533d07f78b1468eb2972c71678bc4b4e537b1..77da06e539f3125aba20b4e3fa75aa62b61c6d2f 100644 (file)
@@ -1,6 +1,6 @@
 /* Report a save- or restore-cwd failure in our openat replacement and then exit.
 
-   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006, 2008 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
@@ -17,6 +17,8 @@
 
 #include <config.h>
 
+#include "openat.h"
+
 #include <stdlib.h>
 
 #include "error.h"