summaryrefslogtreecommitdiff
path: root/pgfuse.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-08-03 10:43:46 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-08-03 10:43:46 +0200
commitc9a86dd1813b03aff74808035f7cae18133e2cbb (patch)
treebfc767522b051aca38185af7a1b110a42373e678 /pgfuse.c
parentd9a54c3f6cbf068a1e1553eac9adcf9127b007f5 (diff)
downloadpgfuse-c9a86dd1813b03aff74808035f7cae18133e2cbb.tar.gz
pgfuse-c9a86dd1813b03aff74808035f7cae18133e2cbb.tar.bz2
added THREAD_ID helper in a util.h, done away with warnings on numerical thread systems
Diffstat (limited to 'pgfuse.c')
-rw-r--r--pgfuse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pgfuse.c b/pgfuse.c
index 572fd31..00ca9a1 100644
--- a/pgfuse.c
+++ b/pgfuse.c
@@ -43,6 +43,7 @@
#endif
#include "config.h" /* compiled in defaults */
+#include "util.h" /* common project utilities */
#include "pgsql.h" /* implements Postgresql accessers */
#include "pool.h" /* implements the connection pool */
@@ -107,8 +108,6 @@ static int psql_release( PgFuseData *data, PGconn *conn )
#define RELEASE( C ) \
if( psql_release( data, C ) < 0 ) return -EIO;
-#define THREAD_ID pthread_self( )
-
/* --- other helpers --- */
static int check_mountpoint( char **old_mountpoint )