From a9fb346e4abf16fd88922c843ed456617cb8644b Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Wed, 9 Nov 2016 12:20:12 -0800 Subject: [PATCH] Fix RocksDB Lite build failure in c_test.cc Summary: Fix the following RocksDB Lite build failure in c_test.cc db/c_test.c:1051:3: error: implicit declaration of function 'fprintf' is invalid in C99 [-Werror,-Wimplicit-function-declaration] fprintf(stderr, "SKIPPED\n"); ^ db/c_test.c:1051:3: error: declaration of built-in function 'fprintf' requires inclusion of the header [-Werror,-Wbuiltin-requires-header] db/c_test.c:1051:11: error: use of undeclared identifier 'stderr' fprintf(stderr, "SKIPPED\n"); ^ 3 errors generated. Closes https://github.com/facebook/rocksdb/pull/1479 Differential Revision: D4151160 Pulled By: yhchiang fbshipit-source-id: a471a30 --- db/c_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/c_test.c b/db/c_test.c index a12780a1e..9b7f16441 100644 --- a/db/c_test.c +++ b/db/c_test.c @@ -2,12 +2,13 @@ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. See the AUTHORS file for names of contributors. */ +#include + #ifndef ROCKSDB_LITE // Lite does not support C API #include "rocksdb/c.h" #include -#include #include #include #include