Commits

Tobias Oberstein  committed 7092ad9

fix #1638

  • Participants
  • Parent commits bcf5393

Comments (0)

Files changed (1)

File lib_pypy/_sqlite3.py

 if _has_load_extension():
     _ffi.cdef("int sqlite3_enable_load_extension(sqlite3 *db, int onoff);")
 
-_lib = _ffi.verify("""
-#include <sqlite3.h>
-""", libraries=['sqlite3']
-)
+if sys.platform.startswith('freebsd'):
+    _lib = _ffi.verify("""
+    #include <sqlite3.h>
+    """, libraries=['sqlite3']
+    )
+else:
+    _lib = _ffi.verify("""
+    #include <sqlite3.h>
+    """, libraries=['sqlite3']],
+         include_dirs=['/usr/local/include'],
+         library_dirs=['/usr/local/lib']
+    )
 
 exported_sqlite_symbols = [
     'SQLITE_ALTER_TABLE',