diff options
author | Klaus Aehlig <aehlig@google.com> | 2018-07-05 02:41:23 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-05 02:42:35 -0700 |
commit | 10219659f58622d99034288cf9f491865f818218 (patch) | |
tree | e7ad165bd6f6c06bcbb4ffc8cc2b73c22f770ddc /src/main | |
parent | 2282728b8ba434f60e492bb0715aefdd8b54fffe (diff) |
blaze_util_posix.cc: fix order of #define
On some systems (including some versions of FreeBSD) it is a requirement
that _WITH_DPRINTF be defined for <stdio.h> to provide the appropriate
header for dprintf(3). Therefore, the respective #define has to come
before any #include as those might pull is <stdio.h>.
Change-Id: I25d55c9c7c0912e8619faf774d2e09f9af9a6a53
PiperOrigin-RevId: 203351202
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/cpp/blaze_util_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/cpp/blaze_util_posix.cc b/src/main/cpp/blaze_util_posix.cc index 2398e17fcb..0a3daaab81 100644 --- a/src/main/cpp/blaze_util_posix.cc +++ b/src/main/cpp/blaze_util_posix.cc @@ -12,9 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#define _WITH_DPRINTF #include "src/main/cpp/blaze_util_platform.h" -#define _WITH_DPRINTF #include <dirent.h> #include <errno.h> #include <fcntl.h> |