Mercurial > dovecot > core-2.2
annotate src/auth/mycrypt.c @ 4058:b1fa11d4a346 HEAD
Fixed AIX compile
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 24 Feb 2006 18:42:47 +0200 |
parents | f1b407e8debb |
children | 8f33680c6722 |
rev | line source |
---|---|
3594
f1b407e8debb
And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents:
3593
diff
changeset
|
1 #ifdef HAVE_CONFIG_H |
f1b407e8debb
And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents:
3593
diff
changeset
|
2 # include "config.h" |
f1b407e8debb
And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents:
3593
diff
changeset
|
3 #endif |
f1b407e8debb
And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents:
3593
diff
changeset
|
4 |
690
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
5 #define _XOPEN_SOURCE 4 |
3364 | 6 #define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */ |
4058 | 7 #ifndef _AIX |
8 # define _XOPEN_VERSION 4 /* breaks AIX */ | |
9 #endif | |
690
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
10 #define _XPG4_2 |
3593 | 11 #ifdef CRYPT_USE_XPG6 |
12 # define _XPG6 /* Some Solaris versions require this, some break with this */ | |
13 #endif | |
690
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
14 #include <unistd.h> |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
15 |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
16 #include "mycrypt.h" |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
17 |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
18 char *mycrypt(const char *key, const char *salt) |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
19 { |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
20 return crypt(key, salt); |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
21 } |