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 8d470e8..0394202 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 6bc533d..77da06e 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"