wsy2220 / a-dda

Automatically exported from code.google.com/p/a-dda
0 stars 0 forks source link

File locking does not work on MAC OS 10.5 #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Thomas Piechota have reported this issue (
http://groups.google.com/group/adda-discuss/browse_thread/thread/d79cfa0b3ea8a46
8
), resulting in compilation errors.

Probably this is caused by the fact that some POSIX environmental variables
are not defined in MAC OS. Moreover, I am not completely sure that the code
for UNIX implementing file locking will work unmodified for MAC OS. Anyway,
this needs more investigating. 

For now, the workaround is to compile without file locking. To do this
uncomment line “CFLAGS += -DNOT_USE_LOCK” in the Makefile. See section 4.1
of the manual for details.

Original issue reported on code.google.com by yurkin on 9 Jul 2009 at 3:38

GoogleCodeExporter commented 9 years ago
Issue 152 has been merged into this issue.

Original comment by yurkin on 26 Jul 2012 at 4:31

GoogleCodeExporter commented 9 years ago
As reported by tsemab in issue 152:

Adding "|| (defined(__APPLE__) && defined(__MACH__))" and the end of 31 line in 
os.h solve the problem

Original comment by yurkin on 26 Jul 2012 at 4:33

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1154.

Original comment by yurkin on 26 Jul 2012 at 5:29