autoupdate
[gnulib.git] / lib / fchdir.c
index c05a9f3..e3ec2fc 100644 (file)
@@ -1,5 +1,5 @@
 /* fchdir replacement.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2007 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
 
 #include <config.h>
 
+/* Specification.  */
+#include <unistd.h>
+
 #include <errno.h>
 #include <fcntl.h>
 #include <stdarg.h>
 #include <stdlib.h>
-#include <unistd.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <dirent.h>
 
 #include "canonicalize.h"
 #include "dirfd.h"
-#include "strdup.h"
 
 /* This replacement assumes that a directory is not renamed while opened
    through a file descriptor.  */