Commit 30006c16 authored by Niels Möller's avatar Niels Möller
Browse files

* src/argp/argp-comp.h: Added ugly hack for fwrite_unlocked and

fputs_unlocked.

Rev: src/argp/argp-comp.h:1.3
parent 1cf8b59f
......@@ -55,10 +55,19 @@ _argp_unlock_xxx (void);
/* For some reason, I can't get this to interact correctly with the header files on my glibc system.
* So instead, I edited the code in argp-help.c that tried to use __strndup. */
#if 0
#if 1
#ifndef __strndup
#define __strndup strndup
#endif
#endif
/* Ugly hack. lsh doesn't use threads, nor stdio */
#if !HAVE_FWRITE_UNLOCKED
#define fwrite_unlocked fwrite
#endif
#if !HAVE_FPUTS_UNLOCKED
#define fputs_unlocked fputs
#endif
#endif /* LSH_ARGP_COMP_H_INCLUDED */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment