Skip to content

Commit 8b8c3fa

Browse files
committed
Removed incompatible interface.
1 parent 15216d9 commit 8b8c3fa

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/unix_stat.F90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ module unix_stat
8282
end type c_stat_type
8383

8484
#endif
85+
8586
#elif defined (__FreeBSD__)
8687

8788
integer(kind=c_int), parameter, public :: S_IRWXU = int(o'0000700')
@@ -132,6 +133,7 @@ module unix_stat
132133
integer(kind=c_uint64_t) :: st_gen = 0
133134
integer(kind=c_uint64_t), private :: st_spare(10) = 0
134135
end type c_stat_type
136+
135137
#endif
136138

137139
public :: c_fstat

src/unix_stdio.F90

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module unix_stdio
1010
integer(kind=c_int), parameter, public :: EOF = -1
1111

1212
public :: c_getchar
13-
public :: c_getline
1413
public :: c_fclose
1514
public :: c_fdopen
1615
public :: c_fflush
@@ -37,16 +36,6 @@ function c_getchar() bind(c, name='getchar')
3736
integer(kind=c_int) :: c_getchar
3837
end function c_getchar
3938

40-
! ssize_t getline(char **lineptr, size_t *n, FILE *stream)
41-
function c_getline(lineptr, n, stream) bind(c, name='getline')
42-
import :: c_char, c_ptr, c_size_t
43-
implicit none
44-
character(kind=c_char), intent(in) :: lineptr(*)
45-
integer(kind=c_size_t), intent(in) :: n
46-
type(c_ptr), intent(in), value :: stream
47-
integer(kind=c_size_t) :: c_getline
48-
end function c_getline
49-
5039
! int fclose(FILE *stream)
5140
function c_fclose(stream) bind(c, name='fclose')
5241
import :: c_int, c_ptr

0 commit comments

Comments
 (0)