Skip to content

Commit

Permalink
[mysql] Fix compilation. (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apprentice-Alchemist committed May 22, 2024
1 parent 2ba25ce commit ca20de2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions libs/mysql/my_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include <memory.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion libs/mysql/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#define _GNU_SOURCE
#include "socket.h"
#include <string.h>

Expand All @@ -29,7 +30,6 @@
# define HANDLE_EINTR(x)

#else
# define _GNU_SOURCE
# include <sys/types.h>
# include <sys/socket.h>
# include <sys/time.h>
Expand Down
2 changes: 1 addition & 1 deletion libs/sqlite/sqlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ HL_PRIM sqlite_result *HL_NAME(request)(sqlite_database *db, vbyte *sql ) {
r->finalize = HL_NAME(finalize_result);
r->db = NULL;

if( sqlite3_prepare16_v2(db->db, sql, -1, &r->r, &tl) != SQLITE_OK ) {
if( sqlite3_prepare16_v2(db->db, sql, -1, &r->r, (const void**)&tl) != SQLITE_OK ) {
HL_NAME(error)(db->db, false);
}

Expand Down

0 comments on commit ca20de2

Please sign in to comment.