diff options
author | Klaus Aehlig <aehlig@google.com> | 2017-10-07 18:12:30 +0200 |
---|---|---|
committer | Klaus Aehlig <aehlig@google.com> | 2017-10-09 08:16:00 +0200 |
commit | 11be883a0aef677799721e60d2c44202cecae6ce (patch) | |
tree | 8e6871629e72fc5a23a986c439b9a5e900b33359 | |
parent | 0204bccf95dfaa01d15c21ffe9a64d04c5a6bf61 (diff) |
blaze_util_posix.cc: declare use of dprintf
On some systems, the dprintf header is only part of <stdio.h> if
requested (to allow compatibility with applications before the
standardization of dprintf). As we use dprintf, request it
by defining _WITH_DPRINTF.
Change-Id: Ia4a80e08760043c5343b4c333b146f4ea87d081b
PiperOrigin-RevId: 171409630
-rw-r--r-- | src/main/cpp/blaze_util_posix.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/cpp/blaze_util_posix.cc b/src/main/cpp/blaze_util_posix.cc index b163734b6d..947faba021 100644 --- a/src/main/cpp/blaze_util_posix.cc +++ b/src/main/cpp/blaze_util_posix.cc @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#define _WITH_DPRINTF #include <dirent.h> #include <errno.h> #include <fcntl.h> |