OSDN Git Service

Allow Win32 to compile under MinGW. Major changes are:
authorBruce Momjian <bruce@momjian.us>
Thu, 15 May 2003 16:35:30 +0000 (16:35 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 15 May 2003 16:35:30 +0000 (16:35 +0000)
commit12c942383296bd626131241c012c2ab81b081738
tree7a37bb6990282b36be53fae1bde399d8e603e9f9
parent2c0556068fc308ed9cce06c85de7e42305d34b86
Allow Win32 to compile under MinGW.  Major changes are:

        Win32 port is now called 'win32' rather than 'win'
        add -lwsock32 on Win32
        make gethostname() be only used when kerberos4 is enabled
        use /port/getopt.c
        new /port/opendir.c routines
        disable GUC unix_socket_group on Win32
        convert some keywords.c symbols to KEYWORD_P to prevent conflict
        create new FCNTL_NONBLOCK macro to turn off socket blocking
        create new /include/port.h file that has /port prototypes, move
          out of c.h
        new /include/port/win32_include dir to hold missing include files
        work around ERROR being defined in Win32 includes
39 files changed:
configure
configure.in
doc/TODO
src/backend/libpq/be-secure.c
src/backend/libpq/pqcomm.c
src/backend/main/main.c
src/backend/parser/gram.y
src/backend/parser/keywords.c
src/backend/port/Makefile
src/backend/port/dynloader/win32.c [moved from src/backend/port/dynloader/win.c with 75% similarity]
src/backend/port/dynloader/win32.h [moved from src/backend/port/dynloader/win.h with 100% similarity]
src/backend/port/win32/sema.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/storage/lmgr/proc.c
src/backend/utils/init/findbe.c
src/backend/utils/mb/encnames.c
src/include/c.h
src/include/pg_config_manual.h
src/include/port.h [new file with mode: 0644]
src/include/port/win.h [deleted file]
src/include/port/win32.h
src/include/port/win32_include/dlfcn.h [new file with mode: 0644]
src/include/port/win32_include/grp.h [new file with mode: 0644]
src/include/port/win32_include/netdb.h [new file with mode: 0644]
src/include/port/win32_include/netinet/in.h [new file with mode: 0644]
src/include/port/win32_include/pwd.h [new file with mode: 0644]
src/include/port/win32_include/sys/socket.h [new file with mode: 0644]
src/include/port/win32_include/sys/wait.h [new file with mode: 0644]
src/include/rusagestub.h
src/include/utils/elog.h
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-connect.c
src/makefiles/Makefile.win32 [moved from src/makefiles/Makefile.win with 74% similarity]
src/port/dirmod.c
src/port/getopt.c
src/port/getrusage.c
src/port/opendir.c [deleted file]
src/template/win32 [new file with mode: 0644]