Hi,
when I try to build sqlite 3.21.0 for VxWorks compilation fails with the
following error:
sqlite3.o
amalgamation/sqlite3.c:30886:43: error: 'ioctl' undeclared here (not in a
function)
{ "ioctl", (sqlite3_syscall_ptr)ioctl, 0 },
adding #include<ioLib.h> in vxworks.h fixes the issue.
--- old\amalgamation\sqlite3.c
+++ new\amalgamation\sqlite3.c
@@ -899,12 +899,13 @@
*/
#if defined(__RTP__) || defined(_WRS_KERNEL)
/* This is VxWorks. Set up things specially for that OS
*/
#include <vxWorks.h>
#include <pthread.h> /* amalgamator: dontcache */
+#include <ioLib.h>
#define OS_VXWORKS 1
#define SQLITE_OS_OTHER 0
#define SQLITE_HOMEGROWN_RECURSIVE_MUTEX 1
#define SQLITE_OMIT_LOAD_EXTENSION 1
#define SQLITE_ENABLE_LOCKING_STYLE 0
#define HAVE_UTIME 1
thanks and best regards,
Thomas
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users