Index: src/backend/utils/fmgr/dfmgr.c =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/backend/utils/fmgr/dfmgr.c,v retrieving revision 1.69 diff -c -r1.69 dfmgr.c *** src/backend/utils/fmgr/dfmgr.c 19 Jan 2004 02:06:41 -0000 1.69 --- src/backend/utils/fmgr/dfmgr.c 5 Feb 2004 07:40:43 -0000 *************** *** 30,36 **** --- 30,38 ---- { struct df_files *next; /* List link */ dev_t device; /* Device file is on */ + #ifndef WIN32 /* ensures we never again depend on this under win32 */ ino_t inode; /* Inode number of file */ + #endif void *handle; /* a handle for pg_dl* functions */ char filename[1]; /* Full pathname of file */ *************** *** 43,49 **** --- 45,56 ---- static DynamicFileList *file_list = NULL; static DynamicFileList *file_tail = NULL; + /* stat() call under Win32 returns an st_ino field, but it has no meaning */ + #ifndef WIN32 #define SAME_INODE(A,B) ((A).st_ino == (B).inode && (A).st_dev == (B).device) + #else + #define SAME_INODE(A,B) false + #endif char *Dynamic_library_path; *************** *** 121,127 **** --- 128,136 ---- MemSet((char *) file_scanner, 0, sizeof(DynamicFileList)); strcpy(file_scanner->filename, fullname); file_scanner->device = stat_buf.st_dev; + #ifndef WIN32 file_scanner->inode = stat_buf.st_ino; + #endif file_scanner->next = NULL; file_scanner->handle = pg_dlopen(fullname);