refs #5368 add some benign includes and change one errno usage for portability

git-svn-id: file:///svn/toku/tokudb@48330 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Leif Walsh 2013-04-17 00:01:10 -04:00 committed by Yoni Fogel
parent 54b16784b4
commit 60f6e4b90c
3 changed files with 4 additions and 1 deletions

View file

@ -12,6 +12,7 @@
// Don't include toku_assert.h. Just use assert.h
#include <assert.h>
#include <string.h>
#include <sys/types.h>
#define VISIBLE "__attribute__((__visibility__(\"default\")))"

View file

@ -7,7 +7,9 @@
/* Tell me the diff between two brt files. */
#include "includes.h"
#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
static void
format_time(const uint64_t time_int, char *buf) {

View file

@ -2089,7 +2089,7 @@ toku_maybe_get_engine_status_text (char * buff, int buffsize) {
r = env_get_engine_status_text(env, buff, buffsize);
}
else {
r = ENODATA;
r = EOPNOTSUPP;
snprintf(buff, buffsize, "Engine status not available: disabled by user. This should only happen in test programs.\n");
}
return r;