OSDN Git Service

librt: convince spawn to compile for !LFS
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 4 Apr 2012 16:08:09 +0000 (18:08 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 4 Apr 2012 16:08:09 +0000 (18:08 +0200)
Great to have this valuable family of high kwalitee functions in here.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
librt/spawn_int.h

index 89c88db..1d990fc 100644 (file)
@@ -24,3 +24,12 @@ struct __spawn_action {
 };
 
 int __posix_spawn_file_actions_realloc(posix_spawn_file_actions_t *fa);
+
+/* handle !LFS */
+#ifndef __UCLIBC_HAS_LFS__
+# define rlimit64 rlimit
+# define getrlimit64 getrlimit
+#endif
+#ifndef O_LARGEFILE
+# define O_LARGEFILE 0
+#endif