Changeset 104 in openpam
- Timestamp:
- Apr 6, 2002, 7:02:06 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/security/openpam.h
r100 r104 32 32 * SUCH DAMAGE. 33 33 * 34 * $P4: //depot/projects/openpam/include/security/openpam.h#1 3$34 * $P4: //depot/projects/openpam/include/security/openpam.h#14 $ 35 35 */ 36 36 … … 118 118 * Log to syslog 119 119 */ 120 void _openpam_log(int _level, 120 void 121 _openpam_log(int _level, 121 122 const char *_func, 122 123 const char *_fmt, 123 124 ...); 124 125 125 #if defined(__STDC__) && (__STDC_VERSION__ > 199901L)126 #if defined(__STDC__) && (__STDC_VERSION__ >= 199901L) 126 127 #define openpam_log(lvl, fmt, ...) \ 127 128 _openpam_log((lvl), __func__, fmt, __VA_ARGS__) 128 #elif defined(__GNUC__) 129 #elif defined(__GNUC__) && (__GNUC__ >= 2) && (__GNUC_MINOR__ >= 95) 130 #define openpam_log(lvl, fmt, ...) \ 131 _openpam_log((lvl), __func__, fmt, ##fmt) 132 #elif defined(__GNUC__) && defined(__FUNCTION__) 129 133 #define openpam_log(lvl, fmt...) \ 130 _openpam_log((lvl), __ func__, ##fmt)134 _openpam_log((lvl), __FUNCTION__, ##fmt) 131 135 #else 132 extern openpam_log(int _level, const char *_format, ...); 136 void 137 openpam_log(int _level, 138 const char *_format, 139 ...); 133 140 #endif 134 141 … … 191 198 * You are not expected to understand this. 192 199 */ 193 #if defined(__GNUC__) && !defined(__PIC__)194 200 #if defined(__FreeBSD__) 195 201 #define PAM_SOEXT ".so" 196 202 #else 197 #error Static linking is not supported on your platform 198 #endif 203 #ifndef NO_STATIC_MODULES 204 #define NO_STATIC_MODULES 205 #endif 206 #endif 207 #if defined(__GNUC__) && !defined(__PIC__) && !defined(NO_STATIC_MODULES) 199 208 /* gcc, static linking */ 200 209 #include <sys/cdefs.h>
Note: See TracChangeset
for help on using the changeset viewer.