]> andersk Git - moira.git/commitdiff
Portability nit for AFS versions > 3.4a. Make sure AFSCONF_CLIENTNAME
authorzacheiss <zacheiss>
Tue, 30 Apr 2002 01:58:59 +0000 (01:58 +0000)
committerzacheiss <zacheiss>
Tue, 30 Apr 2002 01:58:59 +0000 (01:58 +0000)
is defined.

incremental/afs/afs.c

index 78e7475619e31b7de41f1ea2fe47f5950d5c1a6b..2ec09e1858d7f3a059e9add5f5cd9d0f8b0fd2d0 100644 (file)
 #include <afs/ptclient.h>
 #include <afs/pterror.h>
 
+/* Cheesy test for determining AFS more recent than 3.4a */
+#ifndef AFSCONF_CLIENTNAME
+#include <afs/dirpath.h>
+#define AFSCONF_CLIENTNAME AFSDIR_CLIENT_ETC_DIRPATH
+#endif
+
 #define STOP_FILE "/moira/afs/noafs"
 #define file_exists(file) (access((file), F_OK) == 0)
 
This page took 0.034355 seconds and 5 git commands to generate.