1
1

* Add sys/stat.h so that this compiiles on OS X

* Properly protect headers with #ifdefs

This commit was SVN r11771.
Этот коммит содержится в:
Brian Barrett 2006-09-24 18:40:55 +00:00
родитель 18994324ce
Коммит 2bfb2b8a8a

Просмотреть файл

@ -15,7 +15,22 @@
* *
* $HEADER$ * $HEADER$
*/ */
#include "orte_config.h" #include "orte_config.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#include "orte/orte_constants.h" #include "orte/orte_constants.h"
#include "orte/orte_types.h" #include "orte/orte_types.h"
@ -28,9 +43,6 @@
#include "orte/util/pre_condition_transports.h" #include "orte/util/pre_condition_transports.h"
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
/* some network transports require a little bit of information to /* some network transports require a little bit of information to
* "pre-condition" them - i.e., to setup their individual transport * "pre-condition" them - i.e., to setup their individual transport
* connections so they can generate their endpoint addresses. This * connections so they can generate their endpoint addresses. This