-#include "etherboot.h"
-#include "errno.h"
-#include "vsprintf.h"
+#include <errno.h>
+#include <console.h>
+#include <gpxe/errortab.h>
/** @file
*
#define ETIMEDOUT 0xf6 /**< Connection timed out */
#define EWOULDBLOCK EAGAIN /**< Resource temporarily unavailable */
-/* Data structures and declarations */
-
-#include <gpxe/tables.h>
-
extern int errno;
-struct errortab {
- int errno;
- const char *text;
-};
-
-#define __errortab __table(errortab,01)
-
#endif /* ERRNO_H */
--- /dev/null
+#ifndef _GPXE_ERRORTAB_H
+#define _GPXE_ERRORTAB_H
+
+/** @file
+ *
+ * Error message tables
+ *
+ */
+
+#include <errno.h>
+#include <gpxe/tables.h>
+
+struct errortab {
+ int errno;
+ const char *text;
+};
+
+#define __errortab __table ( errortab, 01 )
+
+#endif /* _GPXE_ERRORTAB_H */
-#include "errno.h"
+#include <gpxe/errortab.h>
/*
* This table was generated from the relevant section of errno.h using