#223 closed defect (fixed)
Compile error on AIX 5.3 and --enable-login-watch
Reported by: | rainer | Owned by: | rainer |
---|---|---|---|
Priority: | major | Milestone: | 2.8.1 |
Component: | main | Version: | 2.7.2 |
Keywords: | Cc: |
Description
An error occurs when compiling src/sh_login_track.c
because of a missing include for time.h
(reported by M. El Nahass):
x_sh_login_track.c: At top level: x_sh_login_track.c:841: warning: 'struct tm' declared inside parameter list x_sh_login_track.c:841: warning: its scope is only this definition or declaration, which is probably not what you want x_sh_login_track.c: In function 'time_to_index': x_sh_login_track.c:844: error: dereferencing pointer to incomplete type x_sh_login_track.c:844: error: dereferencing pointer to incomplete type x_sh_login_track.c:844: error: dereferencing pointer to incomplete type x_sh_login_track.c: At top level: x_sh_login_track.c:853: warning: 'struct tm' declared inside parameter list x_sh_login_track.c: In function 'check_host': x_sh_login_track.c:855: warning: passing argument 1 of 'time_to_index' from incompatible pointer type x_sh_login_track.c: In function 'sh_ltrack_check': x_sh_login_track.c:970: error: storage size of 'ts' isn't known x_sh_login_track.c:979: warning: implicit declaration of function 'localtime' x_sh_login_track.c:979: error: invalid application of 'sizeof' to incomplete type 'struct tm' x_sh_login_track.c:979: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast x_sh_login_track.c:970: warning: unused variable 'ts'
Note:
See TracTickets
for help on using tickets.
Fixed in changeset [299].