Update the tst.c example application for libctdb to
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 1 Jun 2010 23:24:17 +0000 (09:24 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 1 Jun 2010 23:24:17 +0000 (09:24 +1000)
use the headers from /usr/include
and add a comment about how to compile it

libctdb/tst.c

index 32dc3a040e9ac2c2c2b463e3185600cbf0a758c6..af23a5693ab04e5809885368d848006cf0f1136f 100644 (file)
@@ -1,9 +1,6 @@
 /*
  * Example program to demonstrate the libctdb api
  *
- * This program needs to be linked with libtdb.
- * (libtdb and libtdb-devel packages)
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
+
+/*
+ * This program needs to be linked with libtdb and libctdb
+ * (You need these packages installed: libtdb libtdb-devel
+ *  ctdb and ctdb-devel)
+ *
+ * This program can then be compiled using
+ *    gcc -o tst tst.c -ltdb -lctdb
+ *
+ *
+ */
 #include <stdio.h>
 #include <stdint.h>
 #include <poll.h>
@@ -25,8 +33,8 @@
 #include <stdlib.h>
 #include <err.h>
 #include <stdbool.h>
-#include "lib/tdb/include/tdb.h"
-#include "include/ctdb.h"
+#include <tdb.h>
+#include <ctdb.h>
 
 TDB_DATA key;