[New-bugs-announce] [issue4639] Build failure on OpenBSD 4.4-current regarding lstat()
Edd
report at bugs.python.org
Fri Dec 12 15:11:19 CET 2008
New submission from Edd <vext01 at gmail.com>:
Hi,
I just had to move the "extern lstat..." outside the "ifndef
HAVE_LSTAT" to get python 2.6.1 to build on OpenBSD 4.4-current/i386.
I'm not suggesting this is correct, but it fixes the build for my
platform at least.
--- Modules/posixmodule.c.orig Fri Dec 12 11:08:54 2008
+++ Modules/posixmodule.c Fri Dec 12 11:54:16 2008
@@ -208,10 +208,11 @@
#ifdef HAVE_SYMLINK
extern int symlink(const char *, const char *);
#endif /* HAVE_SYMLINK */
+#endif /* !HAVE_UNISTD_H */
+
#ifdef HAVE_LSTAT
extern int lstat(const char *, struct stat *);
#endif /* HAVE_LSTAT */
-#endif /* !HAVE_UNISTD_H */
#endif /* !_MSC_VER */
Im using gcc-4.2
Thanks
----------
components: Build
messages: 77667
nosy: vext01
severity: normal
status: open
title: Build failure on OpenBSD 4.4-current regarding lstat()
type: compile error
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4639>
_______________________________________
More information about the New-bugs-announce
mailing list