Procházet zdrojové kódy

dirname.c: include only what is needed

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger před 13 roky
rodič
revize
e0bcc57876
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      libc/string/dirname.c

+ 2 - 1
libc/string/dirname.c

@@ -5,7 +5,8 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-#include "_string.h"
+#define __need_NULL
+#include <stddef.h>
 #include <libgen.h>
 
 char *dirname(char *path)