various fixes
diff --git a/include/libc.h b/include/libc.h
index ecc46c2..93a9104 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -496,6 +496,7 @@
extern int p9accept(int, char*);
extern int p9announce(char*, char*);
extern int p9dial(char*, char*, char*, int*);
+extern int p9dialparse(char *ds, char **net, char **unixa, u32int *ip, int *port);
extern void p9setnetmtpt(char*, int, char*);
extern int p9hangup(int);
extern int p9listen(char*, char*);
diff --git a/include/nfs3.h b/include/nfs3.h
index 0da51b5..7967380 100644
--- a/include/nfs3.h
+++ b/include/nfs3.h
@@ -186,7 +186,7 @@
Nfs3ErrAborted = 10010,
} Nfs3Status;
-void nfs3Errstr(Nfs3Status);
+void nfs3errstr(Nfs3Status);
typedef enum
{
diff --git a/include/venti.h b/include/venti.h
index e0ae8c6..0ea07c4 100644
--- a/include/venti.h
+++ b/include/venti.h
@@ -1,6 +1,6 @@
#ifndef _VENTI_H_
#define _VENTI_H_ 1
-#if defined(__cplusplus)
+#ifdef __cplusplus
extern "C" {
#endif
/* XXX should be own library? */
@@ -37,10 +37,10 @@
/* XXX begin actual venti.h */
-/*
-#pragma lib "libnventi.a"
-#pragma src "/sys/src/libnventi"
-*/
+#ifndef PLAN9PORT
+#pragma lib "libventi.a"
+#pragma src "/sys/src/libventi"
+#endif
typedef struct VtFcall VtFcall;
typedef struct VtConn VtConn;
@@ -166,7 +166,10 @@
*
* V a venti score
*/
-/* #pragma varargck type "V" uchar* */
+#ifndef PLAN9PORT
+#pragma varargck type "V" uchar*
+#pragma varargck type "F" VtFcall*
+#endif
int vtscorefmt(Fmt*);
@@ -449,7 +452,7 @@
extern int chattyventi;
extern int ventidoublechecksha1;
-#if defined(__cplusplus)
+#ifdef __cplusplus
}
#endif
#endif