diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 15:37:55 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 15:37:55 +0000 |
| commit | 9548a8f9c5eba7ee3667e96f036021be3b9238ba (patch) | |
| tree | 4d300dde5220bac968cac17be6ccbd103e7b8edc /ext/socket/rubysocket.h | |
| parent | 60b5c4d97eb5b277dad4054a34253cb6e75bcd78 (diff) | |
| download | ruby-9548a8f9c5eba7ee3667e96f036021be3b9238ba.tar.gz ruby-9548a8f9c5eba7ee3667e96f036021be3b9238ba.tar.xz ruby-9548a8f9c5eba7ee3667e96f036021be3b9238ba.zip | |
* ext/socket/extconf.rb: check sys/param.h and sys/ucred.h.
* ext/socket/rubysocket.h: include sys/param.h and sys/ucred.h.
* ext/socket/option.c (inspect_local_peercred): new function to show
LOCAL_PEERCRED socket option on FreeBSD.
(sockopt_inspect): show as LOCAL_* socket option if AF_UNIX and level
is 0.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/rubysocket.h')
| -rw-r--r-- | ext/socket/rubysocket.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h index 99028443e..9e3692f7f 100644 --- a/ext/socket/rubysocket.h +++ b/ext/socket/rubysocket.h @@ -73,6 +73,13 @@ #include <net/if.h> #endif +#ifdef HAVE_SYS_PARAM_H +#include <sys/param.h> +#endif +#ifdef HAVE_SYS_UCRED_H +#include <sys/ucred.h> +#endif + #ifndef EWOULDBLOCK #define EWOULDBLOCK EAGAIN #endif |
