summaryrefslogtreecommitdiff
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-11-21 22:29:33 +0000
committerWayne Davison <wayned@samba.org>2006-11-21 22:29:33 +0000
commit7de7b49f6cfa6182837c493d497f7509b7391ec4 (patch)
tree8ffc6c7be7d84c13c483473a98a494aa9394cf95 /rsync.h
parentd0d0e41fd2f5e4777c87d199600d64007964a674 (diff)
downloadrsync-7de7b49f6cfa6182837c493d497f7509b7391ec4.tar.gz
Don't define NORETURN for older gcc versions.
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rsync.h b/rsync.h
index 735f8216..d2e328e3 100644
--- a/rsync.h
+++ b/rsync.h
@@ -664,10 +664,15 @@ struct chmod_mode_struct;
#ifndef __GNUC__
#define __attribute__(x)
+# if __GNUC__ <= 2
+# define NORETURN
+# endif
#endif
#define UNUSED(x) x __attribute__((__unused__))
+#ifndef NORETURN
#define NORETURN __attribute__((__noreturn__))
+#endif
#include "proto.h"