summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile4
-rw-r--r--lib/db.h8
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 6c00449..f3ab6dd 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -26,7 +26,7 @@ CFLAGS += $(shell pkg-config --cflags uuid)
CFLAGS += $(shell pkg-config --cflags zlib)
BASELIBS += -lrt
-BASELIBS += $(shell mysql_config --libs_r)
+BASELIBS += $(shell $(SQLCFG) --libs_r)
BASELIBS += $(shell pkg-config --libs uuid)
BASELIBS += $(shell pkg-config --libs zlib)
BASELIBS += $(PYTHON_LIBS)
@@ -53,7 +53,7 @@ ifdef SYSD_NOTIFY
CFLAGS += $(shell pkg-config --cflags libsystemd-daemon)
endif
-CFLAGS += $(shell mysql_config --include)
+CFLAGS += $(shell $(SQLCFG) --include)
DEFINES += $(USES)
all: lib $(TEST) $(DEMO)
diff --git a/lib/db.h b/lib/db.h
index 8c95882..17c6b25 100644
--- a/lib/db.h
+++ b/lib/db.h
@@ -5,8 +5,7 @@
*
*/
-#ifndef __DB_H
-#define __DB_H
+#pragma once
#include <linux/unistd.h>
@@ -16,7 +15,7 @@
#include <stdarg.h>
#include <errno.h>
-#include <mysql/mysql.h>
+#include <mysql.h>
#include <list>
@@ -1368,6 +1367,3 @@ class cDbProcedure : public cDbService
char* name;
};
-
-//***************************************************************************
-#endif //__DB_H