diff options
author | Theodore Ts'o <tytso@mit.edu> | 1999-10-26 14:29:22 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1999-10-26 14:29:22 +0000 |
commit | 36caf25f8d61eb8ffddc9895463bce5807e96808 (patch) | |
tree | 2bb71565661c5c9808a3516f406d5c1035887562 /misc/chattr.c | |
parent | f68aa41476b0d7f43e85413fd08d7cfc8f916ea6 (diff) | |
download | android_external_e2fsprogs-36caf25f8d61eb8ffddc9895463bce5807e96808.tar.gz android_external_e2fsprogs-36caf25f8d61eb8ffddc9895463bce5807e96808.tar.bz2 android_external_e2fsprogs-36caf25f8d61eb8ffddc9895463bce5807e96808.zip |
ChangeLog, e2p.h, feature.c:
feature.c: Fix GCC warnings; add const to the char * types in the
function prototypes for e2p_feature2string and e2p_edit_feature.
ChangeLog, uuid.h, uuid_time.c:
uuid_time.c (variant_string): Declare to be static to avoid gcc warnings.
uuid.h: Add function prototypes for uuid_generate_random() and
uuid_generate_time().
ChangeLog, chattr.c:
chattr.c: Add hack to compile in a definition for S_ISLNK so we can
successfully compile even with warnings turned on.
Diffstat (limited to 'misc/chattr.c')
-rw-r--r-- | misc/chattr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/chattr.c b/misc/chattr.c index 848c1d55..de1480c7 100644 --- a/misc/chattr.c +++ b/misc/chattr.c @@ -32,6 +32,14 @@ #include <sys/stat.h> #include <linux/ext2_fs.h> +#ifndef S_ISLNK /* So we can compile even with gcc-warn */ +# ifdef __S_IFLNK +# define S_ISLNK(mode) __S_ISTYPE((mode), __S_IFLNK) +# else +# define S_ISLNK(mode) 0 +# endif +#endif + #include "et/com_err.h" #include "e2p/e2p.h" |