projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c51602
)
src/oping.c: Remove __attribute__ flags when using non-GNU compiler.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Wed, 17 Nov 2010 09:02:37 +0000
(10:02 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Wed, 17 Nov 2010 09:02:37 +0000
(10:02 +0100)
src/oping.c
patch
|
blob
|
history
diff --git
a/src/oping.c
b/src/oping.c
index
776dc0b
..
8286db0
100644
(file)
--- a/
src/oping.c
+++ b/
src/oping.c
@@
-1,6
+1,6
@@
/**
* Object oriented C module to send ICMP and ICMPv6 `echo's.
/**
* Object oriented C module to send ICMP and ICMPv6 `echo's.
- * Copyright (C) 2006-2010 Florian octo Forster <
octo at verplant.org
>
+ * Copyright (C) 2006-2010 Florian octo Forster <
ff at octo.it
>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-89,6
+89,11
@@
# define _POSIX_SAVED_IDS 0
#endif
# define _POSIX_SAVED_IDS 0
#endif
+/* Remove GNU specific __attribute__ settings when using another compiler */
+#if !__GNUC__
+# define __attribute__(x) /**/
+#endif
+
typedef struct ping_context
{
char host[NI_MAXHOST];
typedef struct ping_context
{
char host[NI_MAXHOST];