Mercurial > dovecot > original-hg > dovecot-1.2
view src/auth/userinfo-passwd.h @ 571:944dbdc61f3d HEAD
Fixed warnings when compiling with Solaris 8
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 04 Nov 2002 07:04:04 +0200 |
parents | 3b1985cbc908 |
children | 6e718f25f0d5 |
line wrap: on
line source
#ifndef __USERINFO_PASSWD_H #define __USERINFO_PASSWD_H /* can't remember what these were for. needed in some systems I think :) */ #ifndef _XOPEN_SOURCE_EXTENDED # define _XOPEN_SOURCE_EXTENDED #endif #define _XPG4_2 /* _XOPEN_SOURCE is required for crypt(). However with Solaris 8 it breaks a few other header files so keep it defined only for unistd.h */ #define _XOPEN_SOURCE 4 /* needed for crypt() */ #include <unistd.h> #undef _XOPEN_SOURCE #include "common.h" #include "userinfo.h" #include <pwd.h> #define IS_VALID_PASSWD(pass) \ ((pass)[0] != '\0' && (pass)[0] != '*' && (pass)[0] != '!') void passwd_fill_cookie_reply(struct passwd *pw, AuthCookieReplyData *reply); #endif