浏览代码

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 13 年之前
父节点
当前提交
e0bcc57876
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)