Skip to content

Commit 2c95a77

Browse files
committed
Merge branch 'bugfix/ioctl_declaration' into 'master'
add missing ioctl declaration See merge request !1442
2 parents 2c2e7f6 + 552ba35 commit 2c95a77

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

components/lwip/include/lwip/port/lwipopts.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include <unistd.h>
3838
#include <sys/time.h>
3939
#include <sys/fcntl.h>
40+
#include <sys/ioctl.h>
4041
#include "esp_task.h"
4142
#include "esp_system.h"
4243
#include "sdkconfig.h"

components/vfs/include/sys/ioctl.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#pragma once
16+
17+
int ioctl(int fd, int request, ...);
18+

components/vfs/vfs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
#include <string.h>
1717
#include <assert.h>
1818
#include <sys/errno.h>
19+
#include <sys/fcntl.h>
20+
#include <sys/ioctl.h>
21+
#include <sys/unistd.h>
22+
#include <dirent.h>
1923
#include "esp_vfs.h"
2024
#include "esp_log.h"
2125

0 commit comments

Comments
 (0)