summaryrefslogtreecommitdiffstats
path: root/winbuild/unistd.py
blob: 93b93410ef245b2d1a33b1332ae4e5fad1febb24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 

import sys
import os

f1 = open(os.path.join(sys.argv[1],'unistd.h'),'w')

f1.write("#ifndef UNISTD_H\n")
f1.write("#define UNISTD_H\n")
f1.write("/* this is a dummy file, that is needed for compiling files that are\n")
f1.write(" * generated with flex under Windows 95/NT.\n")
f1.write(" */\n")
f1.write("#if defined(_MSC_VER)\n")
f1.write("  #include <io.h>\n")
f1.write("#endif\n")
f1.write("#endif\n")