changeset 30338:eab72762c612

openat-die.c: avoid 'no previous prototype' warning * lib/openat-die.c: Include "openat.h". Reported by Reuben Thomas <rrt@sc3d.org>.
author Jim Meyering <meyering@redhat.com>
date Thu, 16 Oct 2008 14:35:41 +0200
parents fb32d1d09185
children 9757b8e67f5c
files ChangeLog lib/openat-die.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 16 09:26:07 2008 +0200
+++ b/ChangeLog	Thu Oct 16 14:35:41 2008 +0200
@@ -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.
--- a/lib/openat-die.c	Thu Oct 16 09:26:07 2008 +0200
+++ b/lib/openat-die.c	Thu Oct 16 14:35:41 2008 +0200
@@ -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"