summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-05-05 11:18:55 +0000
committerjkh <jkh@FreeBSD.org>1997-05-05 11:18:55 +0000
commit776ff3f6b2ead68bf1de5da9e2db9af444268390 (patch)
tree74a31c0f69c5c8b7af823301cfe4329fd343c690 /lib
parent8571c099d8b6e920d97210740caf44e24e7e5261 (diff)
downloadFreeBSD-src-776ff3f6b2ead68bf1de5da9e2db9af444268390.zip
FreeBSD-src-776ff3f6b2ead68bf1de5da9e2db9af444268390.tar.gz
Make this C++ safe.
Submitted by: Nadav Eiron <nadav@barcode.co.il>
Diffstat (limited to 'lib')
-rw-r--r--lib/libftpio/ftpio.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libftpio/ftpio.h b/lib/libftpio/ftpio.h
index 4307f3e..4dee7d9 100644
--- a/lib/libftpio/ftpio.h
+++ b/lib/libftpio/ftpio.h
@@ -2,6 +2,7 @@
#define _FTP_H_INCLUDE
#include <sys/types.h>
+#include <sys/cdefs.h>
#include <stdio.h>
#include <time.h>
@@ -21,7 +22,7 @@
* Turned inside out. Now returns xfers as new file ids, not as a special
* `state' of FTP_t
*
- * $Id$
+ * $Id: ftpio.h,v 1.12 1997/02/22 15:06:52 peter Exp $
*/
/* Internal housekeeping data structure for FTP sessions */
@@ -42,6 +43,8 @@ struct ftperr {
const int num;
const char *string;
};
+
+__BEGIN_DECLS
extern struct ftperr ftpErrList[];
extern int const ftpErrListLength;
@@ -60,5 +63,6 @@ extern FILE *ftpGetURL(char *url, char *user, char *passwd, int *retcode);
extern FILE *ftpPutURL(char *url, char *user, char *passwd, int *retcode);
extern time_t ftpGetModtime(FILE *fp, char *s);
extern const char *ftpErrString(int errno);
+__END_DECLS
#endif /* _FTP_H_INCLUDE */
OpenPOWER on IntegriCloud