Skip to content

Commit

Permalink
Include <bits/stat.h> only once
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Jan 11, 2010

Unverified

No user is associated with the committer email.
1 parent 16ea782 commit 2ee1283
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2010-01-11 Andreas Schwab <schwab@redhat.com>

* io/fcntl.h: Only include <bits/stat.h> once.
* io/sys/stat.h: Likewise.

* bits/confname.h: Add missing comma, remove trailing commas.

2010-01-10 Ulrich Drepper <drepper@redhat.com>
5 changes: 4 additions & 1 deletion io/fcntl.h
Original file line number Diff line number Diff line change
@@ -38,7 +38,10 @@ __BEGIN_DECLS
# include <bits/types.h> /* For __mode_t and __dev_t. */
# define __need_timespec
# include <time.h>
# include <bits/stat.h>
# ifndef __bits_stat_h_included
# include <bits/stat.h>
# define __bits_stat_h_included
# endif

# define S_IFMT __S_IFMT
# define S_IFDIR __S_IFDIR
5 changes: 4 additions & 1 deletion io/sys/stat.h
Original file line number Diff line number Diff line change
@@ -104,7 +104,10 @@ typedef __blksize_t blksize_t;

__BEGIN_DECLS

#include <bits/stat.h>
#ifndef __bits_stat_h_included
# include <bits/stat.h>
# define __bits_stat_h_included
#endif

#if defined __USE_BSD || defined __USE_MISC || defined __USE_XOPEN
# define S_IFMT __S_IFMT

0 comments on commit 2ee1283

Please sign in to comment.