[llvm-commits] CVS: llvm/test/Programs/MultiSource/Applications/siod/Makefile slibu.c
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 2 18:15:02 PDT 2004
Changes in directory llvm/test/Programs/MultiSource/Applications/siod:
Makefile updated: 1.4 -> 1.5
slibu.c updated: 1.4 -> 1.5
---
Log message:
Fix compatibility with cygwin
---
Diffs of the changes: (+4 -2)
Index: llvm/test/Programs/MultiSource/Applications/siod/Makefile
diff -u llvm/test/Programs/MultiSource/Applications/siod/Makefile:1.4 llvm/test/Programs/MultiSource/Applications/siod/Makefile:1.5
--- llvm/test/Programs/MultiSource/Applications/siod/Makefile:1.4 Fri Mar 12 15:13:20 2004
+++ llvm/test/Programs/MultiSource/Applications/siod/Makefile Wed Jun 2 18:06:37 2004
@@ -2,7 +2,7 @@
LEVEL = ../../../../..
PROG = siod
CPPFLAGS = -D__USE_MISC -D__USE_GNU -D__USE_SVID -D__USE_XOPEN_EXTENDED -D__USE_XOPEN -Dunix
-LDFLAGS = -lm -ldl
+LDFLAGS = -lm $(TOOLLINKOPTS)
RUN_OPTIONS = -v1 $(BUILD_SRC_DIR)/test.scm
Index: llvm/test/Programs/MultiSource/Applications/siod/slibu.c
diff -u llvm/test/Programs/MultiSource/Applications/siod/slibu.c:1.4 llvm/test/Programs/MultiSource/Applications/siod/slibu.c:1.5
--- llvm/test/Programs/MultiSource/Applications/siod/slibu.c:1.4 Fri Mar 12 15:13:25 2004
+++ llvm/test/Programs/MultiSource/Applications/siod/slibu.c Wed Jun 2 18:06:37 2004
@@ -98,7 +98,7 @@
static void init_slibu_version(void)
{setvar(cintern("*slibu-version*"),
- cintern("$Id: slibu.c,v 1.4 2004/03/12 21:13:25 gaeke Exp $"),
+ cintern("$Id: slibu.c,v 1.5 2004/06/02 23:06:37 lattner Exp $"),
NIL);}
@@ -720,6 +720,8 @@
if (!r) return(NIL);
#if defined(sun) || defined(sgi) || defined(linux)
namlen = safe_strlen(r->d_name,r->d_reclen);
+#elif defined(__CYGWIN__)
+ namlen = strlen(r->d_name);
#else
namlen = r->d_namlen;
#endif
More information about the llvm-commits
mailing list