[IIO] Removing fileno() accepted/tizen/unified/20190404.022039 submit/tizen/20190403.111722
authorParichay Kapoor <pk.kapoor@samsung.com>
Mon, 1 Apr 2019 05:26:23 +0000 (14:26 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 3 Apr 2019 11:12:34 +0000 (20:12 +0900)
commit36c4dab40be01de4664121f6283564b2e13ba6fc
tree95196e942db1cefe41977ec6a24c8139528547cf
parentacfd242111eea9c8aecf9a8bbe5ec3891db327d9
[IIO] Removing fileno()

Removed usage of fileno to file descriptor to compile without error with C89
as fileno() requires _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE

Using open() from fcntl directly instead of fopen() and fileno() combined
Resolves issue #1293

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
gst/nnstreamer/tensor_source/tensor_src_iio.c
gst/nnstreamer/tensor_source/tensor_src_iio.h