aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2003-01-04 00:32:18 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2003-01-04 00:32:18 +0000
commit91c6113bdc0c97ea3263326d824876ac4d1da1a1 (patch)
tree73d87d88b944607337444981790d52fecff4a810 /include
parentf2bc7cd2623cec85710b92af359ae19b17e7dd0c (diff)
downloadsrc-91c6113bdc0c97ea3263326d824876ac4d1da1a1.tar.gz
src-91c6113bdc0c97ea3263326d824876ac4d1da1a1.zip
Bracket the prototype for ulimit() with __BEGIN_DECLS/__END_DECLS
so that it can be called from C++.
Notes
Notes: svn path=/head/; revision=108634
Diffstat (limited to 'include')
-rw-r--r--include/ulimit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ulimit.h b/include/ulimit.h
index 67fcf4c80d3a..049d382d641d 100644
--- a/include/ulimit.h
+++ b/include/ulimit.h
@@ -29,9 +29,13 @@
#ifndef _ULIMIT_H_
#define _ULIMIT_H_
+#include <sys/cdefs.h>
+
#define UL_GETSIZE 1
#define UL_SETSIZE 2
+__BEGIN_DECLS
long ulimit(int, ...);
+__END_DECLS
#endif /* !_ULIMIT_H_ */