[llvm-commits] CVS: llvm-test/MultiSource/Applications/obsequi/obsequi.c

Reid Spencer reid at x10sys.com
Sat Nov 25 00:26:16 PST 2006



Changes in directory llvm-test/MultiSource/Applications/obsequi:

obsequi.c updated: 1.3 -> 1.4
---
Log message:

Make this test do something other than fail fast when run on Linux, which
has a viable getline function.


---
Diffs of the changes:  (+2 -0)

 obsequi.c |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm-test/MultiSource/Applications/obsequi/obsequi.c
diff -u llvm-test/MultiSource/Applications/obsequi/obsequi.c:1.3 llvm-test/MultiSource/Applications/obsequi/obsequi.c:1.4
--- llvm-test/MultiSource/Applications/obsequi/obsequi.c:1.3	Sat Mar  4 15:47:51 2006
+++ llvm-test/MultiSource/Applications/obsequi/obsequi.c	Sat Nov 25 02:25:55 2006
@@ -34,12 +34,14 @@
 #include "cppflags.h"
 #include "interface.h"
 
+#ifndef __linux__
 // LLVM: define our own getline for portability
 #define getline getline_llvm
 
 ssize_t getline(char **lineptr, size_t *n, FILE *stream) {
   return getstr (lineptr, n, stream, '\n', 0, 0);
 }
+#endif
 
 //########################################################
 // Function templates.






More information about the llvm-commits mailing list