From c0f38e0936c487b63964fd9cef7a9370f227275f Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 2 Jun 2010 09:24:17 +1000 Subject: [PATCH] Update the tst.c example application for libctdb to use the headers from /usr/include and add a comment about how to compile it --- libctdb/tst.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/libctdb/tst.c b/libctdb/tst.c index 32dc3a04..af23a569 100644 --- a/libctdb/tst.c +++ b/libctdb/tst.c @@ -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 @@ -17,6 +14,17 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ + +/* + * 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 #include #include @@ -25,8 +33,8 @@ #include #include #include -#include "lib/tdb/include/tdb.h" -#include "include/ctdb.h" +#include +#include TDB_DATA key; -- 2.34.1