diff options
Diffstat (limited to 'libshims')
-rw-r--r-- | libshims/Android.mk | 7 | ||||
-rw-r--r-- | libshims/idd.c | 22 |
2 files changed, 29 insertions, 0 deletions
diff --git a/libshims/Android.mk b/libshims/Android.mk index cb466ba..88e307f 100644 --- a/libshims/Android.mk +++ b/libshims/Android.mk @@ -36,3 +36,10 @@ LOCAL_MODULE_TAGS := optional LOCAL_32_BIT_ONLY := true include $(BUILD_SHARED_LIBRARY) +include $(CLEAR_VARS) +LOCAL_SRC_FILES := idd.c +LOCAL_MODULE := libshims_idd +LOCAL_MODULE_TAGS := optional +LOCAL_32_BIT_ONLY := true +include $(BUILD_SHARED_LIBRARY) + diff --git a/libshims/idd.c b/libshims/idd.c new file mode 100644 index 0000000..fe6d4f7 --- /dev/null +++ b/libshims/idd.c @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2017 The LineageOS Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#include <unistd.h> + +int getdtablesize(void) { + return 1024; +} |