~ubuntu-branches/ubuntu/precise/gnutls28/precise

« back to all changes in this revision

Viewing changes to gl/tests/lstat.c

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-09-20 19:37:06 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20110920193706-a9phjijvddzg3nkl
Tags: 3.0.3-1
* New upstream version. (Includes a fix for #640639)
* Bump shlibs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
/* written by Jim Meyering */
19
19
 
 
20
/* If the user's config.h happens to include <sys/stat.h>, let it include only
 
21
   the system's <sys/stat.h> here, so that orig_lstat doesn't recurse to
 
22
   rpl_lstat.  */
 
23
#define __need_system_sys_stat_h
20
24
#include <config.h>
21
25
 
22
26
#if !HAVE_LSTAT
27
31
#else /* HAVE_LSTAT */
28
32
 
29
33
/* Get the original definition of lstat.  It might be defined as a macro.  */
30
 
# define __need_system_sys_stat_h
31
34
# include <sys/types.h>
32
35
# include <sys/stat.h>
33
36
# undef __need_system_sys_stat_h
39
42
}
40
43
 
41
44
/* Specification.  */
42
 
# include <sys/stat.h>
 
45
/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
 
46
   eliminates this include because of the preliminary #include <sys/stat.h>
 
47
   above.  */
 
48
# include "sys/stat.h"
43
49
 
44
50
# include <string.h>
45
51
# include <errno.h>