redmine

Commented out posix-hacks.c on Linux

... ... @@ -17,6 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef __FreeBSD__
#define _GNU_SOURCE
#include <stdio.h>
... ... @@ -85,8 +87,11 @@ int posixhacks_deinit() {
while (i < (FOPEN_MAX+1)/2) {
close(reserved_fd[ (i<<1) ]);
close(reserved_fd[ (i<<1) + 1 ]);
i++;
}
return 0;
}
#endif
... ...
... ... @@ -17,14 +17,20 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __POSIX_HACKS_C
# define fopen posixhacks_fopen
# define fdopen posixhacks_fdopen
# define fclose posixhacks_fclose
#endif
#ifdef __FreeBSD__
# ifndef __POSIX_HACKS_C
# define fopen posixhacks_fopen
# define fdopen posixhacks_fdopen
# define fclose posixhacks_fclose
# endif
extern int posixhacks_init();
extern FILE *posixhacks_fopen(const char *path, const char *mode);
extern int posixhacks_fclose(FILE *fp);
extern int posixhacks_deinit();
#else
# define posixhacks_init() (0)
# define posixhacks_deinit() (0)
#endif
... ...