]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/eui64.h
CI: Updated the 'checkout' actions that were using Node.js 16 to Node.js 20. (#489)
[ppp.git] / pppd / eui64.h
index aa83e1a092b8abf28a31eb14fd85c1e5dba3eea5..c24733d1248ac16b372926178f0206d341311ec6 100644 (file)
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  *
  */
+#ifndef PPP_EUI64_H
+#define PPP_EUI64_H
 
 #include "pppdconf.h"
 
-#ifndef __EUI64_H__
-#define __EUI64_H__
-
-#if !defined(INET6)
-#error "this file should only be included when INET6 is defined"
-#endif /* not defined(INET6) */
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #if defined(SOL2)
 #include <netinet/in.h>
@@ -111,5 +110,8 @@ typedef union
 
 char *eui64_ntoa(eui64_t);     /* Returns ascii representation of id */
 
-#endif /* __EUI64_H__ */
+#ifdef __cplusplus
+}
+#endif
 
+#endif /* PPP_EUI64_H */