<feed xmlns='http://www.w3.org/2005/Atom'>
<title>external_wipe/Android.mk, branch replicant-6.0-0004</title>
<subtitle>[no description]</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_wipe/'/>
<entry>
<title>Add support for Android</title>
<updated>2021-03-06T20:21:59+00:00</updated>
<author>
<name>Denis 'GNUtoo' Carikli</name>
<email>GNUtoo@cyberdimension.org</email>
</author>
<published>2021-03-05T11:10:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_wipe/commit/?id=fdaa4c4195d06e81863db07cf0dfcdfc4fa472d3'/>
<id>fdaa4c4195d06e81863db07cf0dfcdfc4fa472d3</id>
<content type='text'>
Copying the The config.h from config.h.in didn't work and
resulted in errors like that:
    external/wipe/dir.c: In function 'drill_down':
    external/wipe/dir.c:92:17: warning:
    assignment from incompatible pointer type
       while ((entry = readdir(dir)) != NULL)
                     ^
    external/wipe/dir.c:94:24: error:
    dereferencing pointer to incomplete type
           if (strncmp(entry-&gt;d_name, ".", 2) &amp;&amp; strncmp(entry-&gt;d_name, "..", 3) != 0)
                            ^
    external/wipe/dir.c:94:58: error:
    dereferencing pointer to incomplete type
           if (strncmp(entry-&gt;d_name, ".", 2) &amp;&amp; strncmp(entry-&gt;d_name, "..", 3) != 0)
                                                              ^
    external/wipe/dir.c:95:15: error:
    dereferencing pointer to incomplete type
      do_file(entry-&gt;d_name); /*** process file ***/
                   ^
    external/wipe/dir.c: In function 'dir_sync':
    external/wipe/dir.c:299:36: warning:
    unused parameter 'name' [-Wunused-parameter]
     private int dir_sync(int ffd, char name[])
                                        ^
So it was generated on Parabola i686 by running ./configure.

Removing the errno declaration was also needed to make it
compile as otherwise we end up with errors like this one:
    In file included from external/wipe/blkdev.c:27:0:
    external/wipe/blkdev.c:66:12: error:
    conflicting types for '__errno'
     extern int errno;
                ^
    bionic/libc/include/errno.h:44:22: note:
    previous declaration of '__errno' was here
     extern volatile int* __errno(void) __pure2;
                          ^

Signed-off-by: Denis 'GNUtoo' Carikli &lt;GNUtoo@cyberdimension.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Copying the The config.h from config.h.in didn't work and
resulted in errors like that:
    external/wipe/dir.c: In function 'drill_down':
    external/wipe/dir.c:92:17: warning:
    assignment from incompatible pointer type
       while ((entry = readdir(dir)) != NULL)
                     ^
    external/wipe/dir.c:94:24: error:
    dereferencing pointer to incomplete type
           if (strncmp(entry-&gt;d_name, ".", 2) &amp;&amp; strncmp(entry-&gt;d_name, "..", 3) != 0)
                            ^
    external/wipe/dir.c:94:58: error:
    dereferencing pointer to incomplete type
           if (strncmp(entry-&gt;d_name, ".", 2) &amp;&amp; strncmp(entry-&gt;d_name, "..", 3) != 0)
                                                              ^
    external/wipe/dir.c:95:15: error:
    dereferencing pointer to incomplete type
      do_file(entry-&gt;d_name); /*** process file ***/
                   ^
    external/wipe/dir.c: In function 'dir_sync':
    external/wipe/dir.c:299:36: warning:
    unused parameter 'name' [-Wunused-parameter]
     private int dir_sync(int ffd, char name[])
                                        ^
So it was generated on Parabola i686 by running ./configure.

Removing the errno declaration was also needed to make it
compile as otherwise we end up with errors like this one:
    In file included from external/wipe/blkdev.c:27:0:
    external/wipe/blkdev.c:66:12: error:
    conflicting types for '__errno'
     extern int errno;
                ^
    bionic/libc/include/errno.h:44:22: note:
    previous declaration of '__errno' was here
     extern volatile int* __errno(void) __pure2;
                          ^

Signed-off-by: Denis 'GNUtoo' Carikli &lt;GNUtoo@cyberdimension.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
