nixpkgs/pkgs/development/libraries/unixODBCDrivers/mariadb-connector-odbc-unistd.patch
Randy Eckenrode 7a2e2458a6
mariadb-connector-odbc: fix build with clang 16 on Darwin
* Use libkrb5 on Darwin;
* Use nixpkgs zlib instead of vendored zlib to fix call to undeclared
  function `close`; and
* Include `unistd.h` for `sleep`.
2023-09-05 00:19:57 -04:00

13 lines
325 B
Diff

diff -ur a/test/use_result.c b/test/use_result.c
--- a/test/use_result.c 1969-12-31 19:00:01.000000000 -0500
+++ b/test/use_result.c 2023-09-05 00:08:12.979889343 -0400
@@ -23,6 +23,8 @@
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <unistd.h>
+
#include "tap.h"
SQLINTEGER my_max_rows= 100;