[BACK]Return to compat_sqlite3_errstr.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

File: [cvsweb.bsd.lv] / mandoc / Attic / compat_sqlite3_errstr.c (download)

Revision 1.2, Sun Aug 10 23:54:41 2014 UTC (9 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +0 -2 lines

Get rid of HAVE_CONFIG_H, it is always defined; idea from libnbcompat.
Include <sys/types.h> where needed, it does not belong in config.h.
Remove <stdio.h> from config.h; if it is missing somewhere, it should
be added, but i cannot find a *.c file where it is missing.

#include "config.h"

#ifdef HAVE_SQLITE3_ERRSTR

int dummy;

#else

const char *
sqlite3_errstr(int rc)
{

	return(rc ? "unknown error" : "not an error");
}

#endif