summary refs log tree commit diff
path: root/sysdeps/stub/if_index.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/if_index.c')
-rw-r--r--sysdeps/stub/if_index.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/sysdeps/stub/if_index.c b/sysdeps/stub/if_index.c
index 1cfec5fc1c..c8f9ea8929 100644
--- a/sysdeps/stub/if_index.c
+++ b/sysdeps/stub/if_index.c
@@ -16,21 +16,28 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-unsigned int if_nametoindex(const char *ifname)
+#define __need_NULL
+#include <stddef.h>
+
+unsigned int
+if_nametoindex (const char *ifname)
 {
   return 0;
 }
 
-char *if_indextoname(unsigned int ifindex, char *ifname)
+char *
+if_indextoname (unsigned int ifindex, char *ifname)
 {
   return NULL;
 }
 
-void if_freenameindex(struct if_nameindex *ifn)
+void
+if_freenameindex (struct if_nameindex *ifn)
 {
 }
 
-struct if_nameindex *if_nameindex(void)
+struct if_nameindex *
+if_nameindex (void)
 {
   return NULL;
 }